Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
xfs: don’t walk off the end of a directory data block
This adds sanity checks for xfs_dir2_data_unused and xfs_dir2_data_entry to make sure don’t stray beyond valid memory region. Before patching, the loop simply checks that the start offset of the dup and dep is within the range. So in a crafted image, if last entry is xfs_dir2_data_unused, we can change dup->length to dup->length-1 and leave 1 byte of space. In the next traversal, this space will be considered as dup or dep. We may encounter an out of bound read when accessing the fixed members.
In the patch, we make sure that the remaining bytes large enough to hold an unused entry before accessing xfs_dir2_data_unused and xfs_dir2_data_unused is XFS_DIR2_DATA_ALIGN byte aligned. We also make sure that the remaining bytes large enough to hold a dirent with a single-byte name before accessing xfs_dir2_data_entry.
Details
- Affected product:
- AlmaLinux 9.2 ESU , Amazon Linux 2 ELS , CentOS 6 ELS , CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 6 ELS , CloudLinux 7 ELS , Debian 10 ELS , Oracle Linux 6 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 @ 3.10.0 (+18 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 8 | Released |
43 kernels
|
| AlmaLinux 9 | Released |
32 kernels
|
| Amazon Linux 2023 | Planned | — |
| CentOS 7 ELS | Released |
7 kernels
|
| CentOS 8 | Released |
33 kernels
|
| CloudLinux OS 7h | Released |
60 kernels
|
| CloudLinux OS 8 | Released |
56 kernels
|
| Debian 12 | Released |
28 kernels
|
| Oracle Linux 8 | Released |
68 kernels
|
| Oracle Linux 9 | Released |
38 kernels
|
| RHEL 8 | Released |
64 kernels
|
| RHEL 9 | Released |
32 kernels
|
| Rocky Linux 8 | Released |
38 kernels
|
| Rocky Linux 9 | Released |
32 kernels
|
| Ubuntu 24.04 | Released |
22 kernels
|
| Ubuntu 24.04 AWS | Ready For Release | — |