# CVE-2021-47119: ext4: fix memory leak in ext4\_fill\_super

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-03-15 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2021-47119, DEBIAN-CVE-2021-47119
- Record: https://cvemate.com/vulnerability/CVE-2021-47119 · JSON: https://cvemate.com/vulnerability/CVE-2021-47119/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.252%, percentile 17.72%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 94)

- debian linux (Debian): \< 5.10.46-1
- ubuntu linux (Ubuntu): \< 3.13.0-205.256 \| \< 4.4.0-267.301 \| \< 4.15.0-236.248 \| \< 5.4.0-214.234
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1142.148 \| \< 4.4.0-1180.195 \| \< 4.15.0-1179.192 \| \< 5.4.0-1144.154
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1144.154~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2117.123 \| All versions (No fix recorded) \| \< 5.4.0-1144.155+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1179.192~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1187.202~14.04.1 \| \< 4.15.0-1187.202~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1149.156
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1187.202
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/01d349a481f0591230300a9171330136f9159bcd>
- <https://git.kernel.org/stable/c/1385b23396d511d5233b8b921ac3058b3f86a5e1>
- <https://git.kernel.org/stable/c/afd09b617db3786b6ef3dc43e28fe728cfea84df>
- <https://ubuntu.com/security/CVE-2021-47119>
- <https://git.kernel.org/linus/afd09b617db3786b6ef3dc43e28fe728cfea84df>
- <https://www.cve.org/CVERecord?id=CVE-2021-47119>
- <https://ubuntu.com/security/notices/USN-7415-1>
- <https://ubuntu.com/security/notices/USN-7428-1>
- <https://ubuntu.com/security/notices/USN-7429-1>
- <https://ubuntu.com/security/notices/USN-7428-2>
- <https://ubuntu.com/security/notices/USN-7429-2>
- <https://ubuntu.com/security/notices/USN-7461-1>
- <https://ubuntu.com/security/notices/USN-7461-2>
- <https://ubuntu.com/security/notices/USN-7462-1>
- <https://ubuntu.com/security/notices/USN-7462-2>
- <https://ubuntu.com/security/notices/USN-7463-1>
- <https://ubuntu.com/security/notices/USN-7461-3>
- <https://ubuntu.com/security/notices/USN-7539-1>
- <https://ubuntu.com/security/notices/USN-7540-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-47119>

---

Data as of 2026-12-05T04:47:14.179Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
