CVE-2021-47365

Analyzed
Published: 21 May 2024, 15:03
Last modified:11 May 2026, 13:53

Vulnerability Summary

Overall Risk (default)
low
22/100
CVSS Score
5.5 MEDIUM
v3.1 (nvd)
EPSS Score
0.01% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

21 May 2024, 15:03
Published
Vulnerability first disclosed
11 May 2026, 13:53
Last Modified
Vulnerability information updated

Description

In the Linux kernel, the following vulnerability has been resolved: afs: Fix page leak There's a loop in afs_extend_writeback() that adds extra pages to a write we want to make to improve the efficiency of the writeback by making it larger. This loop stops, however, if we hit a page we can't write back from immediately, but it doesn't get rid of the page ref we speculatively acquired. This was caused by the removal of the cleanup loop when the code switched from using find_get_pages_contig() to xarray scanning as the latter only gets a single page at a time, not a batch. Fix this by putting the page on a ref on an early break from the loop. Unfortunately, we can't just add that page to the pagevec we're employing as we'll go through that and add those pages to the RPC call. This was found by the generic/074 test. It leaks ~4GiB of RAM each time it is run - which can be observed with "top".

CVSS Metrics

  • v3.1MEDIUMScore: 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS Trends

Current EPSS score: 0.01% Percentile: 3%

Techniques & Countermeasures

  • CWE-459Incomplete Cleanup

    The product does not properly "clean up" and remove temporary or supporting resources after they have been used.

Affected Systems

  • linuxlinux

    ≥ e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < d130b5fdd42254d92948d06347940276140c927e | ≥ e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < 581b2027af0018944ba301d68e7af45c6d1128b5 | 5.13

  • linuxlinux_kernel

    ≥ 5.13, < 5.14.9 | 5.14.9 | 5.15:rc1 | 5.15:rc2

References (2)