CVE-2021-4155: Medium severity Linux Linux kernel vulnerability

Published Dec 22, 2021
·
Updated

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

119 affected componentsFixes available
redhat/kernel<0:2.6.32-754.47.1.el6
0:2.6.32-754.47.1.el6
redhat/kernel-rt<0:3.10.0-1160.59.1.rt56.1200.el7
0:3.10.0-1160.59.1.rt56.1200.el7
redhat/kernel<0:3.10.0-1160.59.1.el7
0:3.10.0-1160.59.1.el7
redhat/kernel<0:3.10.0-514.97.1.el7
0:3.10.0-514.97.1.el7
redhat/kernel<0:3.10.0-693.96.1.el7
0:3.10.0-693.96.1.el7
redhat/kernel<0:3.10.0-957.88.1.el7
0:3.10.0-957.88.1.el7
redhat/kernel<0:3.10.0-1062.63.1.el7
0:3.10.0-1062.63.1.el7
redhat/kernel-rt<0:4.18.0-348.12.2.rt7.143.el8_5
0:4.18.0-348.12.2.rt7.143.el8_5
redhat/kernel<0:4.18.0-348.12.2.el8_5
0:4.18.0-348.12.2.el8_5
redhat/kernel<0:4.18.0-147.59.1.el8_1
0:4.18.0-147.59.1.el8_1
redhat/kernel-rt<0:4.18.0-193.75.1.rt13.125.el8_2
0:4.18.0-193.75.1.rt13.125.el8_2
redhat/kernel<0:4.18.0-193.75.1.el8_2
0:4.18.0-193.75.1.el8_2
redhat/kernel-rt<0:4.18.0-305.34.2.rt7.107.el8_4
0:4.18.0-305.34.2.rt7.107.el8_4
redhat/kernel<0:4.18.0-305.34.2.el8_4
0:4.18.0-305.34.2.el8_4
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
Linux Linux kernel<5.16
redhat/kernel<5.16
5.16
ubuntu/linux-aws<4.4.0-1116.122
4.4.0-1116.122
ubuntu/linux-azure<4.15.0-1131.144~14.04.1
4.15.0-1131.144~14.04.1
ubuntu/linux-lts-xenial<4.4.0-237.271~14.04.1
4.4.0-237.271~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-237.271
4.4.0-237.271
ubuntu/linux-aws<4.4.0-1154.169
4.4.0-1154.169
ubuntu/linux-aws-hwe<4.15.0-1120.128~16.04.1
4.15.0-1120.128~16.04.1
ubuntu/linux-azure<4.15.0-1131.144~16.04.1
4.15.0-1131.144~16.04.1
ubuntu/linux-gcp<4.15.0-1116.130~16.04.1
4.15.0-1116.130~16.04.1
ubuntu/linux-hwe<4.15.0-169.177~16.04.1
4.15.0-169.177~16.04.1
ubuntu/linux-kvm<4.4.0-1117.127
4.4.0-1117.127
ubuntu/linux-oracle<4.15.0-1087.95~16.04.1
4.15.0-1087.95~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1086.93
4.4.0-1086.93
ubuntu/linux-fips*
ubuntu/linux<4.15.0-169.177
4.15.0-169.177
ubuntu/linux-aws<4.15.0-1121.129
4.15.0-1121.129
ubuntu/linux-aws-5.4<5.4.0-1066.69~18.04.1
5.4.0-1066.69~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1131.144
4.15.0-1131.144
ubuntu/linux-azure-5.4<5.4.0-1070.73~18.04.1
5.4.0-1070.73~18.04.1
ubuntu/linux-dell300x<4.15.0-1035.40
4.15.0-1035.40
ubuntu/linux-gcp-4.15<4.15.0-1116.130
4.15.0-1116.130
ubuntu/linux-gcp-5.4<5.4.0-1065.69~18.04.1
5.4.0-1065.69~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1063.66~18.04.1
5.4.0-1063.66~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1034.35~18.04.1
5.4.0-1034.35~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-100.113~18.04.1
5.4.0-100.113~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1015.16~18.04.1
5.4.0-1015.16~18.04.1
ubuntu/linux-kvm<4.15.0-1107.109
4.15.0-1107.109
ubuntu/linux-oracle<4.15.0-1087.95
4.15.0-1087.95
ubuntu/linux-oracle-5.4<5.4.0-1064.68~18.04.1
5.4.0-1064.68~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1053.60~18.04.1
5.4.0-1053.60~18.04.1
ubuntu/linux-raspi2<4.15.0-1103.110
4.15.0-1103.110
ubuntu/linux-snapdragon<4.15.0-1120.129
4.15.0-1120.129
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2061.63
4.15.0-2061.63
ubuntu/linux-azure-fips<4.15.0-2043.47
4.15.0-2043.47
ubuntu/linux-fips<4.15.0-1078.87
4.15.0-1078.87
ubuntu/linux-gcp-fips<4.15.0-2026.28
4.15.0-2026.28
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-100.113
5.4.0-100.113
ubuntu/linux-aws<5.4.0-1066.69
5.4.0-1066.69
ubuntu/linux-aws-5.13<5.13.0-1014.15~20.04.1
5.13.0-1014.15~20.04.1
ubuntu/linux-azure<5.4.0-1070.73
5.4.0-1070.73
ubuntu/linux-azure-5.13<5.13.0-1014.16~20.04.1
5.13.0-1014.16~20.04.1
ubuntu/linux-bluefield<5.4.0-1028.31
5.4.0-1028.31
ubuntu/linux-gcp<5.4.0-1065.69
5.4.0-1065.69
ubuntu/linux-gcp-5.13<5.13.0-1015.18~20.04.1
5.13.0-1015.18~20.04.1
ubuntu/linux-gke<5.4.0-1063.66
5.4.0-1063.66
ubuntu/linux-gkeop<5.4.0-1034.35
5.4.0-1034.35
ubuntu/linux-hwe-5.13<5.13.0-30.33~20.04.1
5.13.0-30.33~20.04.1
ubuntu/linux-ibm<5.4.0-1015.16
5.4.0-1015.16
ubuntu/linux-intel-5.13<5.13.0-1010.10
5.13.0-1010.10
ubuntu/linux-kvm<5.4.0-1056.58
5.4.0-1056.58
ubuntu/linux-oem-5.14<5.14.0-1022.24
5.14.0-1022.24
ubuntu/linux-oracle<5.4.0-1064.68
5.4.0-1064.68
ubuntu/linux-oracle-5.13<5.13.0-1018.22~20.04.1
5.13.0-1018.22~20.04.1
ubuntu/linux-raspi<5.4.0-1053.60
5.4.0-1053.60
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1069.73+fips2
5.4.0-1069.73+fips2
ubuntu/linux-azure-fips<5.4.0-1073.76+fips1
5.4.0-1073.76+fips1
ubuntu/linux-fips<5.4.0-1043.49
5.4.0-1043.49
ubuntu/linux-gcp-fips<5.4.0-1067.71~20.04.1
5.4.0-1067.71~20.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
debian/linux
4.9.303-14.19.232-15.10.92-15.15.15-1
debian/linux-4.19
4.19.232-1~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:2.6.32-754.47.1.el6
  2. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.59.1.rt56.1200.el7
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1160.59.1.el7
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-514.97.1.el7
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-693.96.1.el7
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-957.88.1.el7
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:3.10.0-1062.63.1.el7
  8. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-348.12.2.rt7.143.el8_5
  9. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-348.12.2.el8_5
  10. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-147.59.1.el8_1
  11. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.75.1.rt13.125.el8_2
  12. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-193.75.1.el8_2
  13. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.34.2.rt7.107.el8_4
  14. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-305.34.2.el8_4
  15. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.22-20220330.1.el7_9
  16. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  17. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1116.122
  18. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~14.04.1
  19. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-237.271~14.04.1
  20. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-237.271
  21. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1154.169
  22. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.128~16.04.1
  23. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144~16.04.1
  24. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130~16.04.1
  25. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177~16.04.1
  26. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1117.127
  27. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95~16.04.1
  28. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1086.93
  29. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-169.177
  30. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1121.129
  31. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69~18.04.1
  32. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1131.144
  33. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73~18.04.1
  34. Upgrade

    Upgrade ubuntu/linux-dell300x to a version that resolves this vulnerability.

    Fixed in 4.15.0-1035.40
  35. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1116.130
  36. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69~18.04.1
  37. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66~18.04.1
  38. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35~18.04.1
  39. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113~18.04.1
  40. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16~18.04.1
  41. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1107.109
  42. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1087.95
  43. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68~18.04.1
  44. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60~18.04.1
  45. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1103.110
  46. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.15.0-1120.129
  47. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2061.63
  48. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2043.47
  49. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1078.87
  50. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2026.28
  51. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-100.113
  52. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1066.69
  53. Upgrade

    Upgrade ubuntu/linux-aws-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.15~20.04.1
  54. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.73
  55. Upgrade

    Upgrade ubuntu/linux-azure-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.16~20.04.1
  56. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1028.31
  57. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.69
  58. Upgrade

    Upgrade ubuntu/linux-gcp-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1015.18~20.04.1
  59. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1063.66
  60. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1034.35
  61. Upgrade

    Upgrade ubuntu/linux-hwe-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-30.33~20.04.1
  62. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1015.16
  63. Upgrade

    Upgrade ubuntu/linux-intel-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1010.10
  64. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1056.58
  65. Upgrade

    Upgrade ubuntu/linux-oem-5.14 to a version that resolves this vulnerability.

    Fixed in 5.14.0-1022.24
  66. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1064.68
  67. Upgrade

    Upgrade ubuntu/linux-oracle-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1018.22~20.04.1
  68. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1053.60
  69. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1069.73+fips2
  70. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1073.76+fips1
  71. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1043.49
  72. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1067.71~20.04.1
  73. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 4.9.303-1Fixed in 4.19.232-1Fixed in 5.10.92-1Fixed in 5.15.15-1
  74. Upgrade

    Upgrade debian/linux-4.19 to a version that resolves this vulnerability.

    Fixed in 4.19.232-1~deb9u1
  75. 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.

  76. 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

Dec 22, 2021
Data Sourced
08:55 AM
DescriptionSeverityAffected Software
Dec 31, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Event
via OSV·12:00 AM
Jan 10, 2022
Data Sourced
06:36 AM
Weakness
Jul 6, 2022
Data Sourced
via Red Hat·02:02 PM
DescriptionSeverityAffected Software
Aug 24, 2022
CVE Published
via MITRE·03:10 PM
Data Sourced
via MITRE·03:10 PM
DescriptionWeakness
Aug 29, 2022
Data Sourced
via NVD·01:39 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·01:39 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:37 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:19 AM
Affected Software
Nov 11, 2026
Updated
via OSV·09:37 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:22 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2021-4155?

CVE-2021-4155 is classified as a medium severity vulnerability due to its data leak implications.

2

How do I fix CVE-2021-4155?

To fix CVE-2021-4155, update your system to the appropriate kernel versions or apply available patches.

3

Who is affected by CVE-2021-4155?

CVE-2021-4155 affects local users with access to systems running specific versions of the XFS filesystem.

4

What type of vulnerability is CVE-2021-4155?

CVE-2021-4155 is a data leak vulnerability that allows unauthorized access to potentially sensitive information.

5

Can CVE-2021-4155 be exploited remotely?

No, CVE-2021-4155 requires local access, making it less likely to be exploited remotely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203