# CVE-2024-49983: ext4: drop ppath from ext4\_ext\_replay\_update\_ex() to avoid double-free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-10-21T18:02:28.474Z
- **Modified:** 2026-08-05T11:40:52.589Z

## Who should check

- Anyone running Linux \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< a34bed978364114390162c27e50fca50791c568d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 6367d3f04c69e2b8770b8137bd800e0784b0abbc; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 1b558006d98b7b0b730027be0ee98973dd10ee0d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 3ff710662e8d86a63a39b334e9ca0cb10e5c14b0; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 63adc9016917e6970fb0104ee5fd6770f02b2d80; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95
- Anyone running Linux 5.10

## Description

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

ext4: drop ppath from ext4\_ext\_replay\_update\_ex() to avoid double-free

When calling ext4\_force\_split\_extent\_at() in ext4\_ext\_replay\_update\_ex(),
the 'ppath' is updated but it is the 'path' that is freed, thus potentially
triggering a double-free in the following process:

ext4\_ext\_replay\_update\_ex
  ppath = path
  ext4\_force\_split\_extent\_at(&ppath)
    ext4\_split\_extent\_at
      ext4\_ext\_insert\_extent
        ext4\_ext\_create\_new\_leaf
          ext4\_ext\_grow\_indepth
            ext4\_find\_extent
              if (depth \> path\[0\].p\_maxdepth)
                kfree(path)                 ---\> path First freed
                \*orig\_path = path = NULL    ---\> null ppath
  kfree(path)                               ---\> path double-free !!!

So drop the unnecessary ppath and use path directly to avoid this problem.
And use ext4\_find\_extent() directly to update path, avoiding unnecessary
memory allocation and freeing. Also, propagate the error returned by
ext4\_find\_extent() instead of using strange error codes.

## Affected and fixed versions

- Linux: \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< a34bed978364114390162c27e50fca50791c568d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 6367d3f04c69e2b8770b8137bd800e0784b0abbc; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 1b558006d98b7b0b730027be0ee98973dd10ee0d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 3ff710662e8d86a63a39b334e9ca0cb10e5c14b0; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 63adc9016917e6970fb0104ee5fd6770f02b2d80; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49983. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49983.md
Affected: Linux >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < a34bed978364114390162c27e50fca50791c568d; >= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, < 6367d3f04c69e2b8770b8137bd800e0784b0abbc; >= 8016e29f4362e285f0f7e38…
Fixed in: Linux 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf, Linux 6367d3f04c69e2b8770b8137bd800e0784b0abbc, Linux 1b558006d98b7b0b730027be0ee98973dd10ee0d, Linux 3ff710662e8d86a63a39b334e9ca0cb10e5c14b0, Linux 63adc9016917e6970fb0104ee5fd6770f02b2d80, Linux 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49983 being exploited?

There is no confirmed exploitation: CVE-2024-49983 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49983?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49983?

Linux \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< a34bed978364114390162c27e50fca50791c568d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 6367d3f04c69e2b8770b8137bd800e0784b0abbc; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 1b558006d98b7b0b730027be0ee98973dd10ee0d; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 3ff710662e8d86a63a39b334e9ca0cb10e5c14b0; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 63adc9016917e6970fb0104ee5fd6770f02b2d80; \>= 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, \< 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95; Linux 5.10.

### Is there a fix for CVE-2024-49983?

Yes. Fixed in Linux 8c26d9e53e5fbacda0732a577e97c5a5b7882aaf, Linux 6367d3f04c69e2b8770b8137bd800e0784b0abbc, Linux 1b558006d98b7b0b730027be0ee98973dd10ee0d, Linux 3ff710662e8d86a63a39b334e9ca0cb10e5c14b0, Linux 63adc9016917e6970fb0104ee5fd6770f02b2d80, Linux 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95. Upgrade Linux to 5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95 or later.

### How do I check if I'm affected by CVE-2024-49983?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8c26d9e53e5fbacda0732a577e97c5a5b7882aaf>
- patch: <https://git.kernel.org/stable/c/a34bed978364114390162c27e50fca50791c568d>
- patch: <https://git.kernel.org/stable/c/6367d3f04c69e2b8770b8137bd800e0784b0abbc>
- patch: <https://git.kernel.org/stable/c/1b558006d98b7b0b730027be0ee98973dd10ee0d>
- patch: <https://git.kernel.org/stable/c/3ff710662e8d86a63a39b334e9ca0cb10e5c14b0>
- patch: <https://git.kernel.org/stable/c/63adc9016917e6970fb0104ee5fd6770f02b2d80>
- patch: <https://git.kernel.org/stable/c/5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49983>

HTML: <https://flawdb.com/CVE-2024-49983> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49983>
