Files
CVEs-PoC/2021/CVE-2021-47119.md
T
2024-05-25 21:48:12 +02:00

18 lines
1.4 KiB
Markdown

### [CVE-2021-47119](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-47119)
![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=ac27a0ec112a%3C%2001d349a481f0%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### Description
In the Linux kernel, the following vulnerability has been resolved:ext4: fix memory leak in ext4_fill_superBuffer head references must be released before calling kill_bdev();otherwise the buffer head (and its page referenced by b_data) will notbe freed by kill_bdev, and subsequently that bh will be leaked.If blocksizes differ, sb_set_blocksize() will kill current buffers andpage cache by using kill_bdev(). And then super block will be rereadagain but using correct blocksize this time. sb_set_blocksize() didn'tfully free superblock page and buffer head, and being busy, they werenot 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, andthe bh leak get amplified by a dying memory cgroup that also nevergets freed, and memory consumption is much more easily noticed.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/NaInSec/CVE-LIST