CVE-2021-4155: Medium severity Linux Linux kernel vulnerability
A data leak flaw was found in the way XFSIOCALLOCSP IOCTL in the XFS filesystem allowed for size increase of files with unaligned size. A local attacker could use this flaw to leak data on the XFS filesystem otherwise not accessible to them.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:2.6.32-754.47.1.el6 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:3.10.0-1160.59.1.rt56.1200.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-1160.59.1.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-514.97.1.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-693.96.1.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-957.88.1.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-1062.63.1.el7 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-348.12.2.rt7.143.el8_5 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-348.12.2.el8_5 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-147.59.1.el8_1 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-193.75.1.rt13.125.el8_2 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-193.75.1.el8_2 - Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.34.2.rt7.107.el8_4 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:4.18.0-305.34.2.el8_4 - Upgrade
Upgrade
redhat/redhat-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.3.22-20220330.1.el7_9 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.249-1Fixed in 6.1.159-1Fixed in 6.1.162-1Fixed in 6.12.63-1Fixed in 6.12.73-1Fixed in 6.18.12-1 - Upgrade
Upgrade
redhat/Kernelto a version that resolves this vulnerability.Fixed in 5.16 - Compensating control
Deploy the SystemTap mitigation for XFS by saving the CVE-2021-4155.stp script, ensuring xfs_alloc_file_space is not called with 0 as an argument, and resetting 0 with XFS_BMAPI_PREALLOC. Use $alloc_type = 0x40 for Red Hat Enterprise Linux 6 and $alloc_type = 0x8 for Red Hat Enterprise Linux 7 onwards.
- Operational
Install the required packages with `yum install -y kernel-devel kernel-debuginfo` and `yum install -y systemtap systemtap-runtime`, then build the mitigation kernel module as root with `stap -r \`uname -r\` -m cve_2021_4155.ko -g CVE-2021-4155.stp -p4` and load it as root with `staprun -L cve_2021_4155.ko`.
Event History
Parent advisories
This vulnerability appears in the following advisories.
- RHSA-2022:1417
- RHSA-2022:0622
- RHSA-2022:0592
- RHSA-2022:0620
- RHSA-2022:0529
- RHSA-2022:0530
- RHSA-2022:0531
- RHSA-2022:0533
- RHSA-2022:0712
- RHSA-2022:0718
- RHSA-2022:0176
- RHSA-2022:0188
- RHSA-2022:0232
- RHSA-2022:0335
- RHSA-2022:0344
- RHSA-2022:0958
- RHSA-2022:0629
- RHSA-2022:0590
- RHSA-2022:0636
- RHSA-2022:0187
- RHSA-2022:0186
- RHSA-2022:0231
- RHSA-2022:1263
- RHSA-2022:0540
Frequently Asked Questions
What is the severity of CVE-2021-4155?
CVE-2021-4155 is classified as a medium severity vulnerability due to its data leak implications.
How do I fix CVE-2021-4155?
To fix CVE-2021-4155, update your system to the appropriate kernel versions or apply available patches.
Who is affected by CVE-2021-4155?
CVE-2021-4155 affects local users with access to systems running specific versions of the XFS filesystem.
What type of vulnerability is CVE-2021-4155?
CVE-2021-4155 is a data leak vulnerability that allows unauthorized access to potentially sensitive information.
Can CVE-2021-4155 be exploited remotely?
No, CVE-2021-4155 requires local access, making it less likely to be exploited remotely.