{"id":"CVE-2021-47119","published":"2024-03-15T20:14:25Z","modified":"2026-05-11T13:48:25Z","title":"ext4: fix memory leak in ext4_fill_super","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix memory leak in ext4_fill_super\n\nBuffer head references must be released before calling kill_bdev();\notherwise the buffer head (and its page referenced by b_data) will not\nbe freed by kill_bdev, and subsequently that bh will be leaked.\n\nIf blocksizes differ, sb_set_blocksize() will kill current buffers and\npage cache by using kill_bdev(). And then super block will be reread\nagain but using correct blocksize this time. sb_set_blocksize() didn't\nfully free superblock page and buffer head, and being busy, they were\nnot freed and instead leaked.\n\nThis can easily be reproduced by calling an infinite loop of:\n\n  systemctl start <ext4_on_lvm>.mount, and\n  systemctl stop <ext4_on_lvm>.mount\n\n... since systemd creates a cgroup for each slice which it mounts, and\nthe bh leak get amplified by a dying memory cgroup that also never\ngets freed, and memory consumption is much more easily noticed.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00252,"percentile":0.10155,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/01d349a481f0591230300a9171330136f9159bcd","tags":[]},{"url":"https://git.kernel.org/stable/c/1385b23396d511d5233b8b921ac3058b3f86a5e1","tags":[]},{"url":"https://git.kernel.org/stable/c/afd09b617db3786b6ef3dc43e28fe728cfea84df","tags":[]}],"priority":{"score":2.0,"factors":[{"name":"EPSS percentile","points":2.03}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < 01d349a481f0591230300a9171330136f9159bcd",">= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < 1385b23396d511d5233b8b921ac3058b3f86a5e1",">= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < afd09b617db3786b6ef3dc43e28fe728cfea84df"]},{"vendor":"Linux","product":"Linux","versions":["2.6.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-23T13:37:32.763549Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33767","exploited":false,"provenance":"source"}}