CVE-2021-47119ext4: fix memory leak in ext4_fill_super
- 5.5MediumCVSS base score
- 0.25%Exploitation in 30 daysEPSS · top 83% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: fix memory leak in ext4_fill_super Buffer head references must be released before calling kill_bdev(); otherwise the buffer head (and its page referenced by b_data) will not be freed by kill_bdev, and subsequently that bh will be leaked. If blocksizes differ, sb_set_blocksize() will kill current buffers and page cache by using kill_bdev(). And then super block will be reread again but using correct blocksize this time. sb_set_blocksize() didn't fully free superblock page and buffer head, and being busy, they were not freed and instead leaked. This can easily be reproduced by calling an infinite loop of: systemctl start <ext4_on_lvm>.mount, and systemctl stop <ext4_on_lvm>.mount ... since systemd creates a cgroup for each slice which it mounts, and the bh leak get amplified by a dying memory cgroup that also never gets freed, and memory consumption is much more easily noticed.
Timeline
ID reserved
By Linux
- 11 days later
· 11 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.25% · top 83% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected ac27a0ec112a089f1a5102bc8dffc79c8c815571 – < 01d349a481f0591230300a9171330136f9159bcd
- affected ac27a0ec112a089f1a5102bc8dffc79c8c815571 – < 1385b23396d511d5233b8b921ac3058b3f86a5e1
- affected ac27a0ec112a089f1a5102bc8dffc79c8c815571 – < afd09b617db3786b6ef3dc43e28fe728cfea84df
- affected 2.6.19
- unaffected < 2.6.19
- unaffected 5.10.43 – ≤ 5.10.*
- unaffected 5.12.10 – ≤ 5.12.*
- unaffected 5.13 – ≤ *
References
References3
- https://git.kernel.org/stable/c/01d349a481f0591230300a9171330136f9159bcd (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/1385b23396d511d5233b8b921ac3058b3f86a5e1 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/afd09b617db3786b6ef3dc43e28fe728cfea84df (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-33767 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47119)Record last updated .