CVE-2024-40972

ext4: do not create EA inode under buffer lock

MEDIUM
5.5
CVSS Score
Published: July 12, 2024 at 12:32 PM UTC
Updated: June 17, 2026 at 07:46 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: do not create EA inode under buffer lock ext4_xattr_set_entry() creates new EA inodes while holding buffer lock on the external xattr block. This is problematic as it nests all the allocation locking (which acquires locks on other buffers) under the buffer lock. This can even deadlock when the filesystem is corrupted and e.g. quota file is setup to contain xattr block as data block. Move the allocation of EA inode out of ext4_xattr_set_entry() into the callers.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.1.1074.13 ≤ v < 6.1.1074.13 ≤ v < 6.104.13 ≤ v < 6.6.474.13 ≤ v < 6.9.76.2 ≤ v < 6.6.476.7 ≤ v < 6.9.74.13e50e5129f384ae282adebfb561189cdb19b81cee
Vendor states this is fixed in 0a46ef234756dca04623b7591e8ebb3440622f0b (fixed)
Vendor states this is fixed in 111103907234bffd0a34fba070ad9367de058752 (fixed)
Vendor states this is fixed in 737fb7853acd5bc8984f6f42e4bfba3334be8ae1 (fixed)
Vendor states this is fixed in 752e7fb549d90c33b4d4186f11cfd25a556d1dd (fixed)
Vendor states this is fixed in 4.13 (unaffected)
Vendor states this is fixed in 6.1.107 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.47 (unaffected)
Vendor states this is fixed in 6.9.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0752e7fb549d90c33b4d4186f11cfd25a556d1dd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0a46ef234756dca04623b7591e8ebb3440622f0b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/111103907234bffd0a34fba070ad9367de058752
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/737fb7853acd5bc8984f6f42e4bfba3334be8ae1
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card