Linux · Linux Kernel · CVE-2024-49983
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to 6.6.58
**Description**
The issue is related to the function `ext4 ext replay update ex()` in the Linux kernel's ext4 file system module. It involves a double-free vulnerability, where previously freed memory is accessed again, potentially leading to confidentiality, integrity, and availability impacts. The vulnerability occurs when `ext4 force split extent at()` is called within `ext4 ext replay update ex()`, updating `ppath` but freeing `path`, which can trigger a double-free. The fix involves dropping the unnecessary `ppath` and using `path` directly, as well as using `ext4 find extent()` to update `path` and propagate its error return.
**Recommendations**
For Linux kernel versions prior to 6.6.58, update to version 6.6.58 or later to resolve the issue. As a temporary workaround, consider restricting access to the vulnerable `ext4 ext replay update ex()` function until a patch is available. Additionally, avoid using the `ppath` variable in the affected code path to minimize the risk of exploitation.