CVE-2021-47365
Last modified
CVE-2021-47365 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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".
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.13, < 5.14.9 | — |
| Linux | Linux Kernel | 5.14.9 | — |
| Linux | Linux Kernel | 5.15 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47365?
How severe is CVE-2021-47365?
How do I fix CVE-2021-47365?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47359In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47360In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47361In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47362In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47363In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47364In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47366In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47367In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47368In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47369In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47370In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47371In the Linux kernel, the following vulnerability has been re…7.1
Are you affected by CVE-2021-47365?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
