Overview
About vulnerability
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:
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.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , Debian 10 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , TuxCare 9.6 ESU , Ubuntu 16.04 ELS , Ubuntu 18.04 ELS , Ubuntu 20.04 ELS
- Affected packages:
- kernel @ 5.14.0 (+15 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 9.6 ESU | Planned | — |
| Amazon Linux 1 | Will Not Fix | — |
| Amazon Linux 2 | Released |
97 kernels
|
| Amazon Linux 2023 | Planned | — |
| Amazon Linux 2 5.10 | Will Not Fix | — |
| Amazon Linux 2 5.4 | Will Not Fix | — |
| CentOS 7 ELS | Released |
8 kernels
|
| Debian 11 | Released |
33 kernels
|
| Debian 11 cloud | Released |
13 kernels
|
| Debian 12 | Released |
17 kernels
|
| Oracle Linux 7 UEK 6 | Released |
110 kernels
|
| Oracle Linux 8 UEK 6 | Released |
111 kernels
|
| Oracle Linux 9 UEK 7 | Planned | — |
| Proxmox VE 7 5.15 | Released |
47 kernels
|
| Ubuntu 18.04 | Will Not Fix | — |
| Ubuntu 18.04 AWS Focal | Released |
56 kernels
|
| Ubuntu 18.04 HWE Focal | Released |
69 kernels
|
| Ubuntu 20.04 | Released |
121 kernels
|
| Ubuntu 20.04 AWS | Released |
104 kernels
|
| Ubuntu 20.04 Azure | Released |
94 kernels
|
| Ubuntu 20.04 GCP | Released |
27 kernels
|
| Ubuntu 20.04 HWE AWS | Released |
49 kernels
|
| Ubuntu 20.04 HWE Azure | Released |
32 kernels
|
| Ubuntu 22.04 | Released |
63 kernels
|
| Ubuntu 22.04 AWS | Released |
56 kernels
|
| Ubuntu 22.04 Azure | Released |
52 kernels
|
| Ubuntu 24.04 | Released |
15 kernels
|