# CVE-2026-45948: ext4: fix memory leak in ext4_ext_shift_extents()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:04.937Z
- Modified: 2026-11-06T16:18:53.810Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix memory leak in ext4_ext_shift_extents()

In ext4_ext_shift_extents(), if the extent is NULL in the while loop, the
function returns immediately without releasing the path obtained via
ext4_find_extent(), leading to a memory leak.

Fix this by jumping to the out label to ensure the path is properly
released.

(As written by CVE List.)

## Affected

- Linux Linux: from a18ed359bdddcded4f97ff5e2f07793ff9336913 before 7e807cb8603b7664fa630a696cd891d9a03c248d; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before afc5e61e1a07b2b833bd72cbee36ecce9cd901e2; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before 1bce219ee5512cf179ba40cf114945a14a16e21f; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before 4a79fde8db7eba7f1128d971ceba4e3c9ac84aec; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before 2f4b1052246ca646bb17bfe0f53df2fdf9729b58; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before 12615ab4bfb69678e5d961b28bb70040299e51b1; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before bd7b52557e4a3ccd7595fdb3a585f1257de57935; from a18ed359bdddcded4f97ff5e2f07793ff9336913 before ca81109d4a8f192dc1cbad4a1ee25246363c2833; 3.15 (not affected: before 3.15; from 5.10.252 up to 5.10.*; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 3.15.1 before 5.10.252; from 5.11 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4; 3.15

## References

- <https://git.kernel.org/stable/c/7e807cb8603b7664fa630a696cd891d9a03c248d> (patch)
- <https://git.kernel.org/stable/c/afc5e61e1a07b2b833bd72cbee36ecce9cd901e2> (patch)
- <https://git.kernel.org/stable/c/1bce219ee5512cf179ba40cf114945a14a16e21f> (patch)
- <https://git.kernel.org/stable/c/4a79fde8db7eba7f1128d971ceba4e3c9ac84aec> (patch)
- <https://git.kernel.org/stable/c/2f4b1052246ca646bb17bfe0f53df2fdf9729b58> (patch)
- <https://git.kernel.org/stable/c/12615ab4bfb69678e5d961b28bb70040299e51b1> (patch)
- <https://git.kernel.org/stable/c/bd7b52557e4a3ccd7595fdb3a585f1257de57935> (patch)
- <https://git.kernel.org/stable/c/ca81109d4a8f192dc1cbad4a1ee25246363c2833> (patch)

## Sources

- CVE List: [CVE-2026-45948](https://www.cve.org/CVERecord?id=CVE-2026-45948), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-45948](https://nvd.nist.gov/vuln/detail/CVE-2026-45948), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-45948 · Whole record: https://cve.day/CVE-2026-45948.json · Rebuilt by cve.day 2026-11-25T22:59:22.517Z
