CVE-2026-45948

ext4: fix memory leak in ext4_ext_shift_extents()

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before 7e807cb8603b7664fa630a696cd891d9a03c248dAffected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before afc5e61e1a07b2b833bd72cbee36ecce9cd901e2Affected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before 1bce219ee5512cf179ba40cf114945a14a16e21fAffected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before 4a79fde8db7eba7f1128d971ceba4e3c9ac84aecAffected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before 2f4b1052246ca646bb17bfe0f53df2fdf9729b58Affected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before 12615ab4bfb69678e5d961b28bb70040299e51b1Affected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before bd7b52557e4a3ccd7595fdb3a585f1257de57935Affected
  • a18ed359bdddcded4f97ff5e2f07793ff9336913 to before ca81109d4a8f192dc1cbad4a1ee25246363c2833Affected
LinuxLinux
  • 3.15Affected
  • before 3.15Not affected
  • 5.10.252 through 5.10.*Not affected
  • 5.15.202 through 5.15.*Not affected
  • 6.1.165 through 6.1.*Not affected
  • 6.6.128 through 6.6.*Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.