CVE-2021-47365
afs: Fix page leak
Mitigation
- Upgrade Linux to 581b2027af0018944ba301d68e7af45c6d1128b5 or later.
Who should check
- Anyone running Linux >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < d130b5fdd42254d92948d06347940276140c927e; >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < 581b2027af0018944ba301d68e7af45c6d1128b5
- Anyone running Linux 5.13
Vulnerability facts
- Affected
- Linux >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < d130b5fdd42254d92948d06347940276140c927e; >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < 581b2027af0018944ba301d68e7af45c6d1128b5; Linux 5.13
- Fixed in
- Linux 581b2027af0018944ba301d68e7af45c6d1128b5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-459
- Modified
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".
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47365. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47365.md Affected: Linux >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < d130b5fdd42254d92948d06347940276140c927e; >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < 581b2027af0018944ba301d68e7af45c6d1128b5; Linux 5.13 Fixed in: Linux 581b2027af0018944ba301d68e7af45c6d1128b5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2021-47365 being exploited?
There is no confirmed exploitation: CVE-2021-47365 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47365?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47365?
Linux >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < d130b5fdd42254d92948d06347940276140c927e; >= e87b03f5830ecd8ca21836d3ee48c74f8d58fa31, < 581b2027af0018944ba301d68e7af45c6d1128b5; Linux 5.13.
Is there a fix for CVE-2021-47365?
Yes. Fixed in Linux 581b2027af0018944ba301d68e7af45c6d1128b5. Upgrade Linux to 581b2027af0018944ba301d68e7af45c6d1128b5 or later.
How do I check if I'm affected by CVE-2021-47365?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.