CVE-2021-47365
MEDIUMDescription
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".
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Low risk: more likely to be exploited than 11% of all known CVEs.
References
Related Vulnerabilities
Other CWE-459 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2017-17090 | High | 7.5 | 82% | - | Fix |
| CVE-2021-39327 | Medium | 5.3 | 72% | - | - |
| CVE-2025-31650 | High | 7.5 | 67% | - | Fix |
| CVE-2022-1552 | High | 8.8 | 12% | - | Fix |
| CVE-2018-18924 | High | 8.8 | 9.5% | - | - |
| CVE-2022-21125 | Medium | 5.5 | 6.5% | - | Fix |
Embed a live status badge for CVE-2021-47365
Markdown
[](https://tridentstack.com/cve/CVE-2021-47365)HTML
<a href="https://tridentstack.com/cve/CVE-2021-47365"><img src="https://tridentstack.com/cve/badge/CVE-2021-47365.svg" alt="CVE-2021-47365"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-12.