# CVE-2024-47701: ext4: avoid OOB when system.data xattr changes underneath the filesystem

> 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.37% (percentile 23, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T11:53:37.276Z
- **Modified:** 2026-10-15T01:18:55.507Z

## Who should check

- Anyone running Linux \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 5b076d37e8d99918e9294bd6b35a8bbb436819b0; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< be2e9b111e2790962cc66a177869b4e9717b4e29; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ea32883e4a03ed575a2eb7a66542022312bde477; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 2a6579ef5f2576a940125729f7409cc182f1c8df; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 371d0bacecd529f887ea2547333d9173e7bcdc0a; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ccb8c18076e2e630fea23fbec583cdad61787fc5; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< c6b72f5d82b1017bad80f9ebf502832fc321d796
- Anyone running Linux 3.8

## Description

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

ext4: avoid OOB when system.data xattr changes underneath the filesystem

When looking up for an entry in an inlined directory, if e\_value\_offs is
changed underneath the filesystem by some change in the block device, it
will lead to an out-of-bounds access that KASAN detects as an UAF.

EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.
loop0: detected capacity change from 2048 to 2047
==================================================================
BUG: KASAN: use-after-free in ext4\_search\_dir+0xf2/0x1c0 fs/ext4/namei.c:1500
Read of size 1 at addr ffff88803e91130f by task syz-executor269/5103

CPU: 0 UID: 0 PID: 5103 Comm: syz-executor269 Not tainted 6.11.0-rc4-syzkaller \#0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:93 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:119
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 ext4\_search\_dir+0xf2/0x1c0 fs/ext4/namei.c:1500
 ext4\_find\_inline\_entry+0x4be/0x5e0 fs/ext4/inline.c:1697
 \_\_ext4\_find\_entry+0x2b4/0x1b30 fs/ext4/namei.c:1573
 ext4\_lookup\_entry fs/ext4/namei.c:1727 \[inline\]
 ext4\_lookup+0x15f/0x750 fs/ext4/namei.c:1795
 lookup\_one\_qstr\_excl+0x11f/0x260 fs/namei.c:1633
 filename\_create+0x297/0x540 fs/namei.c:3980
 do\_symlinkat+0xf9/0x3a0 fs/namei.c:4587
 \_\_do\_sys\_symlinkat fs/namei.c:4610 \[inline\]
 \_\_se\_sys\_symlinkat fs/namei.c:4607 \[inline\]
 \_\_x64\_sys\_symlinkat+0x95/0xb0 fs/namei.c:4607
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f3e73ced469
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff4d40c258 EFLAGS: 00000246 ORIG\_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f3e73ced469
RDX: 0000000020000200 RSI: 00000000ffffff9c RDI: 00000000200001c0
RBP: 0000000000000000 R08: 00007fff4d40c290 R09: 00007fff4d40c290
R10: 0023706f6f6c2f76 R11: 0000000000000246 R12: 00007fff4d40c27c
R13: 0000000000000003 R14: 431bde82d7b634db R15: 00007fff4d40c2b0
 \</TASK\>

Calling ext4\_xattr\_ibody\_find right after reading the inode with
ext4\_get\_inode\_loc will lead to a check of the validity of the xattrs,
avoiding this problem.

## Affected and fixed versions

- Linux: \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 5b076d37e8d99918e9294bd6b35a8bbb436819b0; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< be2e9b111e2790962cc66a177869b4e9717b4e29; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ea32883e4a03ed575a2eb7a66542022312bde477; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 2a6579ef5f2576a940125729f7409cc182f1c8df; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 371d0bacecd529f887ea2547333d9173e7bcdc0a; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ccb8c18076e2e630fea23fbec583cdad61787fc5; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< c6b72f5d82b1017bad80f9ebf502832fc321d796 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-47701.md
Affected: Linux >= e8e948e7802a2ab05c146d3e72a39b93b5718236, < 5b076d37e8d99918e9294bd6b35a8bbb436819b0; >= e8e948e7802a2ab05c146d3e72a39b93b5718236, < 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20; >= e8e948e7802a2ab05c146d3e72a39b93b5718236, < 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba; >= e8e948e7802a2ab05c146d3…
Fixed in: Linux 5b076d37e8d99918e9294bd6b35a8bbb436819b0, Linux 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20, Linux 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba, Linux 2a6579ef5f2576a940125729f7409cc182f1c8df, Linux 371d0bacecd529f887ea2547333d9173e7bcdc0a

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-47701 being exploited?

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

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

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

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

Linux \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 5b076d37e8d99918e9294bd6b35a8bbb436819b0; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< be2e9b111e2790962cc66a177869b4e9717b4e29; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ea32883e4a03ed575a2eb7a66542022312bde477; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 2a6579ef5f2576a940125729f7409cc182f1c8df; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< 371d0bacecd529f887ea2547333d9173e7bcdc0a; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< ccb8c18076e2e630fea23fbec583cdad61787fc5; \>= e8e948e7802a2ab05c146d3e72a39b93b5718236, \< c6b72f5d82b1017bad80f9ebf502832fc321d796; Linux 3.8.

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

Yes. Fixed in Linux 5b076d37e8d99918e9294bd6b35a8bbb436819b0, Linux 8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20, Linux 7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba, Linux 2a6579ef5f2576a940125729f7409cc182f1c8df, Linux 371d0bacecd529f887ea2547333d9173e7bcdc0a. No fix listed yet: follow the vendor advisory.

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

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/7fc22c3b3ffc0e952f5e0062dd11aa6ae76affba>
- patch: <https://git.kernel.org/stable/c/be2e9b111e2790962cc66a177869b4e9717b4e29>
- patch: <https://git.kernel.org/stable/c/ea32883e4a03ed575a2eb7a66542022312bde477>
- patch: <https://git.kernel.org/stable/c/2a6579ef5f2576a940125729f7409cc182f1c8df>
- patch: <https://git.kernel.org/stable/c/371d0bacecd529f887ea2547333d9173e7bcdc0a>
- patch: <https://git.kernel.org/stable/c/ccb8c18076e2e630fea23fbec583cdad61787fc5>
- patch: <https://git.kernel.org/stable/c/c6b72f5d82b1017bad80f9ebf502832fc321d796>
- other: <https://git.kernel.org/stable/c/5b076d37e8d99918e9294bd6b35a8bbb436819b0>
- other: <https://git.kernel.org/stable/c/8adf0eb4e361a9e060d54f4bd0ac9c5d85277d20>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.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-47701>

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