ext4: fix memory leak in ext4_ext_shift_extents()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a18ed359bdddcded4f97ff5e2f07793ff9336913 · < 12615ab4bfb69678e5d961b28bb70040299e51b1| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ext4_ext_shift_extents() can leak memory if an extent is NULL in its while loop, because it returns without releasing a path. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with ext4 should check their versions; affected versions are not specified.