CVE-2021-40490: Race Condition

Published Sep 3, 2021
·
Updated

A race condition was discovered in ext4writeinlinedataend in fs/ext4/inline.c in the ext4 subsystem in the Linux kernel through 5.13.13.

Affected Software

162 affected componentsFixes available
Linux Linux kernel<=5.13.13
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Debian Debian Linux=9.0
Debian Debian Linux=11.0
NetApp Aff A250 Firmware
NetApp Aff A250
NetApp Fas 500f Firmware
NetApp Fas 500f
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
NetApp H610c Firmware
NetApp H610c
NetApp H610s Firmware
NetApp H610s
NetApp H615c Firmware
NetApp H615c
All of the following
NetApp Aff A250 Firmware
NetApp Aff A250
All of the following
NetApp Fas 500f Firmware
NetApp Fas 500f
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H610c Firmware
NetApp H610c
All of the following
NetApp H610s Firmware
NetApp H610s
All of the following
NetApp H615c Firmware
NetApp H615c
NetApp Solidfire Baseboard Management Controller
Linux Linux kernel>=3.8<4.4.284
Linux Linux kernel>=4.5<4.9.283
Linux Linux kernel>=4.10<4.14.247
Linux Linux kernel>=4.15<4.19.207
Linux Linux kernel>=4.20<5.4.145
Linux Linux kernel>=5.5<5.10.63
Linux Linux kernel>=5.11<5.13.15
Linux Linux kernel>=5.14<5.14.2
ubuntu/linux-aws<4.4.0-1102.107
4.4.0-1102.107
ubuntu/linux-azure<4.15.0-1125.138~14.04.1
4.15.0-1125.138~14.04.1
ubuntu/linux-lts-xenial<4.4.0-222.255~14.04.1
4.4.0-222.255~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-222.255
4.4.0-222.255
ubuntu/linux-aws<4.4.0-1138.152
4.4.0-1138.152
ubuntu/linux-aws-hwe<4.15.0-1113.120~16.04.1
4.15.0-1113.120~16.04.1
ubuntu/linux-azure<4.15.0-1125.138~16.04.1
4.15.0-1125.138~16.04.1
ubuntu/linux-gcp<4.15.0-1110.124~16.04.1
4.15.0-1110.124~16.04.1
ubuntu/linux-hwe<4.15.0-161.169~16.04.1
4.15.0-161.169~16.04.1
ubuntu/linux-kvm<4.4.0-1103.112
4.4.0-1103.112
ubuntu/linux-oracle<4.15.0-1082.90~16.04.1
4.15.0-1082.90~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1072.78
4.4.0-1072.78
ubuntu/linux-fips*
ubuntu/linux<4.15.0-161.169
4.15.0-161.169
ubuntu/linux-aws<4.15.0-1114.121
4.15.0-1114.121
ubuntu/linux-aws-5.4<5.4.0-1058.61~18.04.3
5.4.0-1058.61~18.04.3
ubuntu/linux-azure-4.15<4.15.0-1125.138
4.15.0-1125.138
ubuntu/linux-azure-5.4<5.4.0-1062.65~18.04.1
5.4.0-1062.65~18.04.1
ubuntu/linux-dell300x<4.15.0-1029.34
4.15.0-1029.34
ubuntu/linux-gcp-4.15<4.15.0-1110.124
4.15.0-1110.124
ubuntu/linux-gcp-5.4<5.4.0-1056.60~18.04.1
5.4.0-1056.60~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1054.57~18.04.1
5.4.0-1054.57~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1025.26~18.04.1
5.4.0-1025.26~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-89.100~18.04.1
5.4.0-89.100~18.04.1
ubuntu/linux-kvm<4.15.0-1101.103
4.15.0-1101.103
ubuntu/linux-oracle<4.15.0-1082.90
4.15.0-1082.90
ubuntu/linux-oracle-5.4<5.4.0-1056.60~18.04.1
5.4.0-1056.60~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1045.49~18.04.1
5.4.0-1045.49~18.04.1
ubuntu/linux-raspi2<4.15.0-1097.103
4.15.0-1097.103
ubuntu/linux-snapdragon<4.15.0-1114.123
4.15.0-1114.123
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-gcp-edge*
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-2055.57
4.15.0-2055.57
ubuntu/linux-azure-fips<4.15.0-2037.41
4.15.0-2037.41
ubuntu/linux-fips<4.15.0-1071.80
4.15.0-1071.80
ubuntu/linux-gcp-fips<4.15.0-2020.22
4.15.0-2020.22
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-89.100
5.4.0-89.100
ubuntu/linux-aws<5.4.0-1058.61
5.4.0-1058.61
ubuntu/linux-aws-5.11<5.11.0-1020.21~20.04.2
5.11.0-1020.21~20.04.2
ubuntu/linux-azure<5.4.0-1062.65
5.4.0-1062.65
ubuntu/linux-azure-5.11<5.11.0-1020.21~20.04.1
5.11.0-1020.21~20.04.1
ubuntu/linux-azure-5.8<5.8.0-1043.46~20.04.1
5.8.0-1043.46~20.04.1
ubuntu/linux-bluefield<5.4.0-1020.23
5.4.0-1020.23
ubuntu/linux-gcp<5.4.0-1056.60
5.4.0-1056.60
ubuntu/linux-gcp-5.11<5.11.0-1021.23~20.04.1
5.11.0-1021.23~20.04.1
ubuntu/linux-gke<5.4.0-1054.57
5.4.0-1054.57
ubuntu/linux-gkeop<5.4.0-1025.26
5.4.0-1025.26
ubuntu/linux-hwe-5.11<5.11.0-38.42~20.04.1
5.11.0-38.42~20.04.1
ubuntu/linux-ibm<5.4.0-1006.7
5.4.0-1006.7
ubuntu/linux-kvm<5.4.0-1048.50
5.4.0-1048.50
ubuntu/linux-oem-5.10<5.10.0-1050.52
5.10.0-1050.52
ubuntu/linux-oem-5.13<5.13.0-1014.18
5.13.0-1014.18
ubuntu/linux-oracle<5.4.0-1056.60
5.4.0-1056.60
ubuntu/linux-oracle-5.11<5.11.0-1020.21~20.04.1
5.11.0-1020.21~20.04.1
ubuntu/linux-raspi<5.4.0-1045.49
5.4.0-1045.49
ubuntu/linux-riscv-5.11<5.11.0-1021.22~20.04.1
5.11.0-1021.22~20.04.1
ubuntu/linux-aws-5.8*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
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-1035.41
5.4.0-1035.41
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*
android/:unknown:>=:0<:2022-01-05
:2022-01-05
debian/linux
6.1.176-16.1.190-16.12.107-16.12.116-17.2.15-17.3.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.4.0-1102.107
  2. Upgrade

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

    Fixed in 4.15.0-1125.138~14.04.1
  3. Upgrade

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

    Fixed in 4.4.0-222.255~14.04.1
  4. Upgrade

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

    Fixed in 4.4.0-222.255
  5. Upgrade

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

    Fixed in 4.4.0-1138.152
  6. Upgrade

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

    Fixed in 4.15.0-1113.120~16.04.1
  7. Upgrade

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

    Fixed in 4.15.0-1125.138~16.04.1
  8. Upgrade

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

    Fixed in 4.15.0-1110.124~16.04.1
  9. Upgrade

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

    Fixed in 4.15.0-161.169~16.04.1
  10. Upgrade

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

    Fixed in 4.4.0-1103.112
  11. Upgrade

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

    Fixed in 4.15.0-1082.90~16.04.1
  12. Upgrade

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

    Fixed in 4.4.0-1072.78
  13. Upgrade

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

    Fixed in 4.15.0-161.169
  14. Upgrade

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

    Fixed in 4.15.0-1114.121
  15. Upgrade

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

    Fixed in 5.4.0-1058.61~18.04.3
  16. Upgrade

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

    Fixed in 4.15.0-1125.138
  17. Upgrade

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

    Fixed in 5.4.0-1062.65~18.04.1
  18. Upgrade

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

    Fixed in 4.15.0-1029.34
  19. Upgrade

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

    Fixed in 4.15.0-1110.124
  20. Upgrade

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

    Fixed in 5.4.0-1056.60~18.04.1
  21. Upgrade

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

    Fixed in 5.4.0-1054.57~18.04.1
  22. Upgrade

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

    Fixed in 5.4.0-1025.26~18.04.1
  23. Upgrade

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

    Fixed in 5.4.0-89.100~18.04.1
  24. Upgrade

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

    Fixed in 4.15.0-1101.103
  25. Upgrade

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

    Fixed in 4.15.0-1082.90
  26. Upgrade

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

    Fixed in 5.4.0-1056.60~18.04.1
  27. Upgrade

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

    Fixed in 5.4.0-1045.49~18.04.1
  28. Upgrade

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

    Fixed in 4.15.0-1097.103
  29. Upgrade

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

    Fixed in 4.15.0-1114.123
  30. Upgrade

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

    Fixed in 4.15.0-2055.57
  31. Upgrade

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

    Fixed in 4.15.0-2037.41
  32. Upgrade

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

    Fixed in 4.15.0-1071.80
  33. Upgrade

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

    Fixed in 4.15.0-2020.22
  34. Upgrade

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

    Fixed in 5.4.0-89.100
  35. Upgrade

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

    Fixed in 5.4.0-1058.61
  36. Upgrade

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

    Fixed in 5.11.0-1020.21~20.04.2
  37. Upgrade

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

    Fixed in 5.4.0-1062.65
  38. Upgrade

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

    Fixed in 5.11.0-1020.21~20.04.1
  39. Upgrade

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

    Fixed in 5.8.0-1043.46~20.04.1
  40. Upgrade

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

    Fixed in 5.4.0-1020.23
  41. Upgrade

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

    Fixed in 5.4.0-1056.60
  42. Upgrade

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

    Fixed in 5.11.0-1021.23~20.04.1
  43. Upgrade

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

    Fixed in 5.4.0-1054.57
  44. Upgrade

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

    Fixed in 5.4.0-1025.26
  45. Upgrade

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

    Fixed in 5.11.0-38.42~20.04.1
  46. Upgrade

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

    Fixed in 5.4.0-1006.7
  47. Upgrade

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

    Fixed in 5.4.0-1048.50
  48. Upgrade

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

    Fixed in 5.10.0-1050.52
  49. Upgrade

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

    Fixed in 5.13.0-1014.18
  50. Upgrade

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

    Fixed in 5.4.0-1056.60
  51. Upgrade

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

    Fixed in 5.11.0-1020.21~20.04.1
  52. Upgrade

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

    Fixed in 5.4.0-1045.49
  53. Upgrade

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

    Fixed in 5.11.0-1021.22~20.04.1
  54. Upgrade

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

    Fixed in 5.4.0-1069.73+fips2
  55. Upgrade

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

    Fixed in 5.4.0-1073.76+fips1
  56. Upgrade

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

    Fixed in 5.4.0-1035.41
  57. Upgrade

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

    Fixed in 5.4.0-1067.71~20.04.1
  58. Upgrade

    Upgrade android/:unknown: to a version that resolves this vulnerability.

    Fixed in :2022-01-05
  59. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.3-1

Event History

Sep 3, 2021
CVE Published
via MITRE·12:50 AM
Data Sourced
via MITRE·12:50 AM
Description
Data Sourced
via OSV·01:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 1, 2022
Advisory Published
via OSV·12:00 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2021-40490?

CVE-2021-40490 is classified with a moderate severity level due to the potential for data corruption in the ext4 filesystem.

2

How do I fix CVE-2021-40490?

To remediate CVE-2021-40490, upgrade to a patched version of the Linux kernel, specifically versions greater than 5.13.13.

3

Which Linux distributions are affected by CVE-2021-40490?

CVE-2021-40490 affects various Linux distributions including Debian and Fedora, particularly versions up to their respective kernel versions 5.13.13.

4

What kind of vulnerability is CVE-2021-40490?

CVE-2021-40490 is a race condition vulnerability that affects the ext4 subsystem of the Linux kernel.

5

Can CVE-2021-40490 lead to data loss?

Yes, CVE-2021-40490 can potentially result in data loss or corruption if exploited due to the nature of the race condition.

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