CVE & CISA-KEV Catalog

CVE-2021-47365

MEDIUM
5.5
CVSS v3
NVD

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".

How to fix

Remediation Available
linuxDebian
Fixed in:5.14.9-1CVE-2021-47365
Fixed in:5.14.9-1CVE-2021-47365
Fixed in:5.14.9-1CVE-2021-47365

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

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.21%probability of exploitation in 30 days
11thpercentile

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

CVESeverityCVSSEPSSExploitedFix
CVE-2017-17090High7.582%-Fix
CVE-2021-39327Medium5.372%--
CVE-2025-31650High7.567%-Fix
CVE-2022-1552High8.812%-Fix
CVE-2018-18924High8.89.5%--
CVE-2022-21125Medium5.56.5%-Fix
Embed a live status badge for CVE-2021-47365
CVE-2021-47365 severity badge

Markdown

[![CVE-2021-47365](https://tridentstack.com/cve/badge/CVE-2021-47365.svg)](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 free

This 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.