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.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in the ext4 file system driver of the Linux kernel. When the ext4_ext_shift_extents() function encounters a NULL extent in its loop, it exits immediately without releasing a previously allocated path obtained via ext4_find_extent(). This missing release causes a memory leak that can accumulate over time, reducing available memory and potentially leading to a denial‑of‑service situation if the leak is repeated frequently during heavy file‑system activity. The weakness is a resource‑management flaw that does not directly provide code execution, authentication bypass, or data disclosure.

Affected Systems

This issue affects the Linux kernel’s ext4 file system. No specific kernel versions are listed in the data, but the problem exists in any kernel that implements the ext4_ext_shift_extents() function prior to the patch. The vulnerability is therefore relevant to all Linux distributions that ship the ext4 driver without applying the fix.

Risk and Exploitability

The CVSS score is not supplied, and the EPSS score is unavailable, indicating that the risk is not quantified by current metrics. The vulnerability is not listed in CISA KEV, suggesting it has not been widely exploited in the public domain. Because this is an internal resource‑management bug, it is likely only exploitable by users with local privileges or processes that trigger intensive ext4 operations. The exploitability is considered low, but for systems that demand high reliability—especially those writing large amounts of data to ext4—monitoring memory usage and applying the patch is prudent.

Generated by OpenCVE AI on May 27, 2026 at 17:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the ext4_ext_shift_extents memory‑leak fix, using the latest distribution package or applying the patch from the kernel commit linked in the advisories.
  • If an immediate kernel update is not possible, monitor memory consumption on servers running heavy ext4 workloads and consider limiting the rate of ext4 operations using cgroup or task‑level quotas to reduce the impact of the leak.
  • Review system logs for repeated ext4 errors and schedule a kernel upgrade at the earliest maintenance window to permanently eliminate the resource leak.

Generated by OpenCVE AI on May 27, 2026 at 17:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title ext4: fix memory leak in ext4_ext_shift_extents()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:18:04.937Z

Reserved: 2026-05-13T15:03:33.088Z

Link: CVE-2026-45948

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:11.157

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-45948

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T17:30:38Z

Weaknesses