CVE-2021-40490
Linux Kernel vulnerability analysis and mitigation

Overview

A race condition vulnerability (CVE-2021-40490) was discovered in ext4writeinlinedataend in fs/ext4/inline.c in the ext4 subsystem in the Linux kernel through version 5.13.13. The vulnerability was disclosed on September 2, 2021, affecting the Linux kernel's ext4 filesystem implementation (NVD, Debian).

Technical details

The vulnerability occurs when writing to an inlinedata file while its xattrs (extended attributes) are changing. The location of the system.data extended attribute can change whenever xattrsem is not taken, requiring recalculation of the iinlineoff field as it might have changed between ext4writebegin() and ext4writeend(). The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (HIGH) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD, Kernel Patch).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability requires local access with low privileges and high attack complexity (NetApp Advisory).

Mitigation and workarounds

A patch has been released to fix the vulnerability by recalculating the iinlineoff field since it might have changed between ext4writebegin() and ext4writeend(). Multiple Linux distributions have released security updates to address this vulnerability, including Debian (versions 4.9.290-1, 4.19.208-1, 5.10.46-5), Fedora (kernel-5.13.15), and others (Kernel Patch, Debian Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management