CVSS 3.1
5.5 mediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NMedium (5.5) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NExplain CVE-2021-4155 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4155?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4155?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4155 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| linux:linux_kernel | before 5.16 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | linux | 4.9.303-1 | DLA-2940-1 |
| Debian | 9 | linux-4.19 | 4.19.232-1~deb9u1 | DLA-2941-1 |
| Debian | 10 | linux | 4.19.232-1 | DSA-5096-1 |
| Debian | 11 | linux | 5.10.92-1 | DSA-5050-1 |
| Debian | 12, 13, 14 | linux | 5.15.15-1 | DEBIAN-CVE-2021-4155 |
| Ubuntu | 16.04:LTS | linux-hwe-edge | no fix listed | UBUNTU-CVE-2021-4155 |
| Ubuntu | 18.04:LTS | linux | 4.15.0-169.177 | UBUNTU-CVE-2021-4155 USN-5298-1 |
| Ubuntu | 18.04:LTS | linux-aws | 4.15.0-1121.129 | UBUNTU-CVE-2021-4155 USN-5298-1 |
| Ubuntu | 18.04:LTS | linux-aws-5.4 | 5.4.0-1066.69~18.04.1 | UBUNTU-CVE-2021-4155 USN-5294-2 |
| Ubuntu | 18.04:LTS | linux-azure-4.15 | 4.15.0-1131.144 | UBUNTU-CVE-2021-4155 USN-5298-1 |
| Ubuntu | 18.04:LTS | linux-azure-5.4 | 5.4.0-1070.73~18.04.1 | UBUNTU-CVE-2021-4155 USN-5294-2 |
| Ubuntu | 18.04:LTS | linux-dell300x | 4.15.0-1035.40 | UBUNTU-CVE-2021-4155 USN-5298-1 |
| Ubuntu | 18.04:LTS | linux-gcp, linux-hwe, linux-oem and 10 more | no fix listed | UBUNTU-CVE-2021-4155 |
| Ubuntu | 18.04:LTS | linux-gcp-4.15 | 4.15.0-1116.130 | UBUNTU-CVE-2021-4155 USN-5298-1 |
| Ubuntu | 18.04:LTS | linux-gcp-5.4 | 5.4.0-1065.69~18.04.1 | UBUNTU-CVE-2021-4155 USN-5294-2 |
| Ubuntu | 18.04:LTS | linux-gke-5.4 | 5.4.0-1063.66~18.04.1 | UBUNTU-CVE-2021-4155 USN-5297-1 |
| Ubuntu | 18.04:LTS | linux-gkeop-5.4 | 5.4.0-1034.35~18.04.1 | UBUNTU-CVE-2021-4155 USN-5294-2 |
| 53 more for Ubuntu in the JSON and on Ubuntu's page. | ||||
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::workstation | perf, kernel, bpftool and 16 more | 0:3.10.0-1160.59.1.el7 | RHSA-2022:0620 |
| Red Hat | enterprise_linux:7::computenode | perf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more | 0:3.10.0-1160.59.1.el7 | RHSA-2022:0620 |
| Red Hat | enterprise_linux:7::hypervisor | redhat-virtualization-host, redhat-virtualization-host-image-update | 0:4.3.22-20220330.1.el7_9 | RHSA-2022:1263 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_21_1, kpatch-patch-3_10_0-1160_21_1-debuginfo | 0:1-9.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_24_1, kpatch-patch-3_10_0-1160_25_1, kpatch-patch-3_10_0-1160_24_1-debuginfo and 1 more | 0:1-7.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_31_1, kpatch-patch-3_10_0-1160_31_1-debuginfo | 0:1-6.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_36_2, kpatch-patch-3_10_0-1160_36_2-debuginfo | 0:1-5.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_41_1, kpatch-patch-3_10_0-1160_41_1-debuginfo | 0:1-4.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_42_2, kpatch-patch-3_10_0-1160_42_2-debuginfo | 0:1-3.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_45_1, kpatch-patch-3_10_0-1160_45_1-debuginfo | 0:1-2.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | kpatch-patch-3_10_0-1160_49_1, kpatch-patch-3_10_0-1160_53_1, kpatch-patch-3_10_0-1160_49_1-debuginfo and 1 more | 0:1-1.el7 | RHSA-2022:0592 |
| Red Hat | enterprise_linux:7::server | perf, kernel, bpftool and 23 more | 0:3.10.0-1160.59.1.el7 | RHSA-2022:0620 |
| 59 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 more | kernel-default-base | 5.3.18-150200.24.129.1.150200.9.61.1 | SUSE-SU-2022:3450-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 more | kernel-docs, kernel-syms, kernel-source and 3 more | 5.3.18-150200.24.129.1 | SUSE-SU-2022:3450-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 more | kernel-syms, kernel-source, kernel-default | 4.4.180-94.153.1 | SUSE-SU-2022:0362-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-LTSS, Linux Enterprise Server for SAP Applications 12 SP3 and 2 more | kgraft-patch-SLE12-SP3_Update_42 | 1-4.3.1 | SUSE-SU-2022:0362-1 |
| SUSE | Linux Enterprise High Availability Extension 12 SP3 | kernel-default | 4.4.180-94.153.1 | SUSE-SU-2022:0362-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2 | kernel-default | 5.3.18-150200.24.129.1 | SUSE-SU-2022:3450-1 |
| SUSE | Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 2 more | kernel-default | 5.3.18-150300.59.93.1 | SUSE-SU-2022:3264-1 |
| SUSE | Linux Enterprise Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_30 | 1-150200.5.3.1 | SUSE-SU-2022:3450-1 |
| SUSE | Linux Enterprise Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_24 | 1-150300.7.3.1 | SUSE-SU-2022:3264-1 |
| SUSE | Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 | kernel-rt | 5.3.18-150300.106.1 | SUSE-SU-2022:3809-1 |
| SUSE | Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Module for Basesystem 15 SP3 | kernel-default-base | 5.3.18-150300.59.93.1.150300.18.54.1 | SUSE-SU-2022:3264-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP3 | kernel-64kb, kernel-source, kernel-default and 2 more | 5.3.18-150300.59.93.1 | SUSE-SU-2022:3264-1 |
| 7 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.3 | dtb-aarch64, kernel-64kb, kernel-docs and 9 more | 5.3.18-150300.59.93.1 | SUSE-SU-2022:3264-1 |
| openSUSE | Leap 15.3 | kernel-azure, kernel-syms-azure, kernel-source-azure | 5.3.18-150300.38.80.1 | SUSE-SU-2022:3609-1 |
| openSUSE | Leap 15.3, Leap Micro 5.2 | kernel-default-base | 5.3.18-150300.59.93.1.150300.18.54.1 | SUSE-SU-2022:3264-1 |
| openSUSE | Leap 15.4 | dtb-aarch64 | 5.3.18-150300.59.93.1 | SUSE-SU-2022:3264-1 |
| openSUSE | Leap Micro 5.2 | kernel-default | 5.3.18-150300.59.93.1 | SUSE-SU-2022:3264-1 |
| openSUSE | Leap Micro 5.2 | kernel-rt | 5.3.18-150300.106.1 | SUSE-SU-2022:3809-1 |
| AlmaLinux | 8 | kernel-tools-libs-devel | 4.18.0-348.12.2.el8_5 | ALSA-2022:0188 |
| Rocky Linux | 8 | kernel | 0:4.18.0-348.12.2.el8_5 | RLSA-2022:0188 |
| Rocky Linux | 8 | kernel-rt | 0:4.18.0-348.12.2.rt7.143.el8_5 | RLSA-2022:0176 |
| Azure Linux | 2 | kernel | 5.15.67.1-4 | AZL-10677 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Important.
This issue can be mitigated by ensuring xfs_alloc_file_space is not called with "0" as an argument.
This can be done with a SystemTap script (which resets "0" with XFS_BMAPI_PREALLOC), below are the steps:
1) Save the following script in a 'CVE-2021-4155.stp' file
--- On Red Hat Enterprise Linux 6 ---
probe module("xfs").function("xfs_alloc_file_space") {
if ($alloc_type == 0)
$alloc_type = 0x40;# XFS_BMAPI_PREALLOC
}
--- On Red Hat Enterprise Linux 6 ---
--- On Red Hat Enterprise Linux 7 onwards ---
probe module("xfs").function("xfs_alloc_file_space") {
if ($alloc_type == 0)
$alloc_type = 0x8;# XFS_BMAPI_PREALLOC
}
--- On Red Hat Enterprise Linux 7 onwards ---
2) Install systemtap package and its dependencies
# yum install -y systemtap systemtap-runtime
# yum install -y kernel-devel kernel-debuginfo
3) Build the mitigation kernel module as root.
# stap -r `uname -r` -m cve_2021_4155.ko -g CVE-2021-4155.stp -p4
4) Load the mitigation module as root
# staprun -L cve_2021_4155.ko
What is SystemTap and how to use it?
https://access.redhat.com/solutions/5441
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 Extended Lifecycle Support | kernel-0:2.6.32-754.47.1.el6 | Fixed 2022-04-19 | RHSA-2022:1417 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-1160.59.1.rt56.1200.el7 | Fixed 2022-02-22 | RHSA-2022:0622 |
| Red Hat Enterprise Linux 7 | kpatch-patch | Fixed 2022-02-22 | RHSA-2022:0592 |
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-1160.59.1.el7 | Fixed 2022-02-22 | RHSA-2022:0620 |
| Red Hat Enterprise Linux 7.3 Advanced Update Support | kernel-0:3.10.0-514.97.1.el7 | Fixed 2022-02-15 | RHSA-2022:0529 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | kernel-0:3.10.0-693.96.1.el7 | Fixed 2022-02-15 | RHSA-2022:0530 |
| Red Hat Enterprise Linux 7.6 Advanced Update Support | kernel-0:3.10.0-957.88.1.el7 | Fixed 2022-02-15 | RHSA-2022:0531 |
| Red Hat Enterprise Linux 7.6 Telco Extended Update Support | kernel-0:3.10.0-957.88.1.el7 | Fixed 2022-02-15 | RHSA-2022:0531 |
| Red Hat Enterprise Linux 7.6 Update Services for SAP Solutions | kernel-0:3.10.0-957.88.1.el7 | Fixed 2022-02-15 | RHSA-2022:0531 |
| Red Hat Enterprise Linux 7.6 Update Services for SAP Solutions | kpatch-patch | Fixed 2022-02-15 | RHSA-2022:0533 |
| Red Hat Enterprise Linux 7.7 Advanced Update Support | kernel-0:3.10.0-1062.63.1.el7 | Fixed 2022-03-01 | RHSA-2022:0712 |
| Red Hat Enterprise Linux 7.7 Telco Extended Update Support | kernel-0:3.10.0-1062.63.1.el7 | Fixed 2022-03-01 | RHSA-2022:0712 |
| Red Hat Enterprise Linux 7.7 Update Services for SAP Solutions | kernel-0:3.10.0-1062.63.1.el7 | Fixed 2022-03-01 | RHSA-2022:0712 |
| Red Hat Enterprise Linux 7.7 Update Services for SAP Solutions | kpatch-patch | Fixed 2022-03-01 | RHSA-2022:0718 |
| Red Hat Enterprise Linux 8 | kernel-rt-0:4.18.0-348.12.2.rt7.143.el8_5 | Fixed 2022-01-19 | RHSA-2022:0176 |
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-348.12.2.el8_5 | Fixed 2022-01-19 | RHSA-2022:0188 |
| Red Hat Enterprise Linux 8 | kpatch-patch | Fixed 2022-01-24 | RHSA-2022:0232 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | kpatch-patch | Fixed 2022-02-01 | RHSA-2022:0335 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | |
| Red Hat Enterprise Linux 9 | kernel | Not affected | |
| 10 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4155.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.