CVE-2021-47119
Last modified
CVE-2021-47119 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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.
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 | >= 2.6.19, < 5.10.43 | — |
| Linux | Linux Kernel | >= 5.11, < 5.12.10 | — |
| Linux | Linux Kernel | 5.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47119?
How severe is CVE-2021-47119?
How do I fix CVE-2021-47119?
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-47113In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47114In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47115Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2021-47116In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47117In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47118In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47120In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47121In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47122In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47123In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47124In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47125In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2021-47119?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
