CVE-2024-47701
ext4: avoid OOB when system.data xattr changes underneath the filesystem
Reported by linux · Published October 21, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools-devel | Amazon Linux | 6.1.115-126.197.amzn2023, 4.14.355-275.582.amzn2 |
| kernel | Amazon Linux | 6.1.115-126.197.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.115-126.197.amzn2023, 4.14.355-275.582.amzn2 |
| kernel-devel | Amazon Linux | 6.1.115-126.197.amzn2023, 4.14.355-275.582.amzn2 |
| python3-perf | Amazon Linux | 6.1.115-126.197.amzn2023 |
| perf | Amazon Linux | 6.1.115-126.197.amzn2023, 4.14.355-275.582.amzn2 |
| bpftool | Amazon Linux | 6.1.115-126.197.amzn2023 |
| SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | Siemens | 3.2 |
| linux_kernel | linux | 6.11.2, 6.10.13, 6.6.54, 6.1.113, 5.15.168, 5.10.227 |
| RUGGEDCOM RST2428P | Siemens | 3.2 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e8e948e7802a2ab05c146d3e72a39b93b5718236, e8e948e7802a2ab05c146d3e72a39b93b5718236, e8e948e7802a2ab05c146d3e72a39b93b5718236 |
| Linux | Linux | 3.8, 0, 4.19.323 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | perf | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
| amazon:2023 | perf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | bpftool | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| Linux | Linux | *, *, * |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
…and 13 more
Timeline
- Oct 21, 2024 Coalition ESS Score (19 in total, the first dated here)
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Jan 6, 2025 CVE Updated
- Dec 16, 2025 PoC Published
- Jan 3, 2026 Security Advisory (449 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (381 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-47701
vulnetix vdb fixes CVE-2024-47701
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47701/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html url
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html url
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html url