CVE-2022-49349
published high CVSS 3.1 · 7.8ext4: fix use-after-free in ext4_rename_dir_prepare
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 1a3a15bf6f9963d755270cbdb282863b84839195 · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 97f802a652a749422dede32071d29a53cf4bd034 · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 10801095224de0d0ab06ae60698680c1f883a3ae · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < eaecf7ebfd5dd09038a80b14be46b844f54cfc5c · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < dd887f83ea54aea5b780a84527e23ab95f777fed · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 364380c00912bed9b5d99eb485018360b0ecf64f · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 0ff38b99fa075ddd246487a28cb9af049f4ceef1 · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 4a2bea60cf7ff957b3eda0b17750d483876a02fa · 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 0be698ecbe4471fcad80e81ec6a05001421041b3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 4.9.318 through 4.9.* (unaffected · semver) · 4.14.283 through 4.14.* (unaffected · semver) · 4.19.247 through 4.19.* (unaffected · semver) · 5.4.198 through 5.4.* (unaffected · semver) · 5.10.121 through 5.10.* (unaffected · semver) · 5.15.46 through 5.15.* (unaffected · semver) · 5.17.14 through 5.17.* (unaffected · semver) · 5.18.3 through 5.18.* (unaffected · semver) · 5.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1813 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-015 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-028 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-8 | bpftools390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftoolx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | bpftool-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernels390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelsrc | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernelx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-abi-stablelistsnoarch | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-coreppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-cores390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-corex86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugs390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debugx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-coreppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-cores390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-corex86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-devels390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-develx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-moduless390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modulesx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extraaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extrappc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extras390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debug-modules-extrax86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-aarch64aarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-ppc64leppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-s390xs390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-debuginfo-common-x86_64x86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-devels390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-develx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-docnoarch | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-moduless390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modulesx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extraaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extrappc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extras390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-modules-extrax86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolss390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-toolsx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-tools-libsx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdumps390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-cores390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-devels390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-moduless390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | kernel-zfcpdump-modules-extras390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perfaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perfppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perfs390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perfx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | perf-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfs390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perfx86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfoaarch64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfoppc64le | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfos390x | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-8 | python3-perf-debuginfox86_64 | Advisory build | 4.18.0-425.3.1.el8 | RHSA-2022:7683 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 5.14.0-162.6.1.el9_1 | RHSA-2022:8267 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: fix use-after-free in ext4_rename_dir_prepare We got issue as follows: EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue ext4_get_first_dir_block: bh->b_data=0xffff88810bee6000 len=34478 ext4_get_first_dir_block: *parent_de=0xffff88810beee6ae bh->b_data=0xffff88810bee6000 ext4_rename_dir_prepare: [1] parent_de=0xffff88810beee6ae ================================================================== BUG: KASAN: use-after-free in ext4_rename_dir_prepare+0x152/0x220 Read of size 4 at addr ffff88810beee6ae by task rep/1895 CPU: 13 PID: 1895 Comm: rep Not tainted 5.10.0+ #241 Call Trace: dump_stack+0xbe/0xf9 print_address_description.constprop.0+0x1e/0x220 kasan_report.cold+0x37/0x7f ext4_rename_dir_prepare+0x152/0x220 ext4_rename+0xf44/0x1ad0 ext4_rename2+0x11c/0x170 vfs_rename+0xa84/0x1440 do_renameat2+0x683/0x8f0 __x64_sys_renameat+0x53/0x60 do_syscall_64+0x33/0x40 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f45a6fc41c9 RSP: 002b:00007ffc5a470218 EFLAGS: 00000246 ORIG_RAX: 0000000000000108 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f45a6fc41c9 RDX: 0000000000000005 RSI: 0000000020000180 RDI: 0000000000000005 RBP: 00007ffc5a470240 R08: 00007ffc5a470160 R09: 0000000020000080 R10: 00000000200001c0 R11: 0000000000000246 R12: 0000000000400bb0 R13: 00007ffc5a470320 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:00000000440015ce refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x10beee flags: 0x200000000000000() raw: 0200000000000000 ffffea00043ff4c8 ffffea0004325608 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88810beee580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810beee600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88810beee680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88810beee700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810beee780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== Disabling lock debugging due to kernel taint ext4_rename_dir_prepare: [2] parent_de->inode=3537895424 ext4_rename_dir_prepare: [3] dir=0xffff888124170140 ext4_rename_dir_prepare: [4] ino=2 ext4_rename_dir_prepare: ent->dir->i_ino=2 parent=-757071872 Reason is first directory entry which 'rec_len' is 34478, then will get illegal parent entry. Now, we do not check directory entry after read directory block in 'ext4_get_first_dir_block'. To solve this issue, check directory entry in 'ext4_get_first_dir_block'. [ Trigger an ext4_error() instead of just warning if the directory is missing a '.' or '..' entry. Also make sure we return an error code if the file system is corrupted. -TYT ]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached only via the local VFS rename path (renameat → vfs_rename → ext4_rename → ext4_rename_dir_prepare → ext4_get_first_dir_block) after mounting a crafted ext4 image; there is no network-protocol or packet-processing entry into this path. AC:L - A crafted first directory entry with an oversized rec_len (e.g. 34478) deterministically makes ext4_next_entry compute a parent_de past the buffer_head into freed memory; the attacker fully controls on-disk dirents with no race or attacker-uncontrollable layout required. PR:N - The attacker needs no privileges on the target—only a malicious ext4 image (USB/SD/loop); ext4 lacks FS_USERNS_MOUNT, so CAP_SYS_ADMIN belongs to the victim or automount path that mounts the volume. UI:R - Exploitation requires a user or automount/storage daemon to mount the attacker-supplied ext4 volume and then rename a crafted directory so the corrupt '.' / '..' walk runs in ext4_rename_dir_prepare. S:U - Impact is host-kernel heap/page UAF within the same OS security authority; this is standard local privilege escalation, not a VM escape, IOMMU bypass, or other cross-boundary scope change. C:H - KASAN demonstrates a use-after-free read of parent_de->inode from a freed page; UAF reclaim/heap spray yields arbitrary kernel read primitives, scored Confidentiality High per UAF guidance. I:H - If sprayed freed-page contents satisfy the parent inode check, ext4_rename_dir_finish writes through the dangling parent_de pointer (parent_de->inode = dir_ino), yielding a UAF write / control-flow hijack primitive scored Integrity High. A:H - The demonstrated KASAN use-after-free in ext4_rename_dir_prepare and subsequent dangling-pointer use can oops/panic the kernel even without full exploitation, so Availability impact is High.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 1a3a15bf6f9963d755270cbdb282863b84839195 (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 97f802a652a749422dede32071d29a53cf4bd034 (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 10801095224de0d0ab06ae60698680c1f883a3ae (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < eaecf7ebfd5dd09038a80b14be46b844f54cfc5c (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < dd887f83ea54aea5b780a84527e23ab95f777fed (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 364380c00912bed9b5d99eb485018360b0ecf64f (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 0ff38b99fa075ddd246487a28cb9af049f4ceef1 (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 4a2bea60cf7ff957b3eda0b17750d483876a02fa (affected · git)32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to < 0be698ecbe4471fcad80e81ec6a05001421041b3 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)4.9.318 through 4.9.* (unaffected · semver)4.14.283 through 4.14.* (unaffected · semver)4.19.247 through 4.19.* (unaffected · semver)5.4.198 through 5.4.* (unaffected · semver)5.10.121 through 5.10.* (unaffected · semver)5.15.46 through 5.15.* (unaffected · semver)5.17.14 through 5.17.* (unaffected · semver)5.18.3 through 5.18.* (unaffected · semver)5.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
9- https://git.kernel.org/stable/c/0be698ecbe4471fcad80e81ec6a05001421041b3
- https://git.kernel.org/stable/c/0ff38b99fa075ddd246487a28cb9af049f4ceef1
- https://git.kernel.org/stable/c/10801095224de0d0ab06ae60698680c1f883a3ae
- https://git.kernel.org/stable/c/1a3a15bf6f9963d755270cbdb282863b84839195
- https://git.kernel.org/stable/c/364380c00912bed9b5d99eb485018360b0ecf64f
- https://git.kernel.org/stable/c/4a2bea60cf7ff957b3eda0b17750d483876a02fa
- https://git.kernel.org/stable/c/97f802a652a749422dede32071d29a53cf4bd034
- https://git.kernel.org/stable/c/dd887f83ea54aea5b780a84527e23ab95f777fed
- https://git.kernel.org/stable/c/eaecf7ebfd5dd09038a80b14be46b844f54cfc5c
Provider assertions
2Linux · cna
ext4: fix use-after-free in ext4_rename_dir_prepare
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b0f4d6efb53a64352e7f536fd4126a066fc4b0e136b066e0014ae45e6d29b467
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record