VDB

CVE-2024-40972

CVE-2024-40972 PUBLISHED

ext4: do not create EA inode under buffer lock

Reported by linux · Published July 12, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.109-118.189.amzn2023
kernel-tools-develAmazon Linux6.1.109-118.189.amzn2023
perfAmazon Linux6.1.109-118.189.amzn2023
bpftoolAmazon Linux6.1.109-118.189.amzn2023
kernel-libbpfAmazon Linux6.1.109-118.189.amzn2023
kernel-headersAmazon Linux6.1.109-118.189.amzn2023
kernel-toolsAmazon Linux6.1.109-118.189.amzn2023
linux_kernellinux6.9.7, 6.6.47, 6.1.107

Affected products

VendorProductVersions
LinuxLinuxe50e5129f384ae282adebfb561189cdb19b81cee, e50e5129f384ae282adebfb561189cdb19b81cee, e50e5129f384ae282adebfb561189cdb19b81cee
LinuxLinux4.13, 0, 6.1.107
amazon:2023python3-perf0
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
amazon:2023kernel-tools0
linuxlinux_kernel4.13, 4.13, 4.13
amazon:2023kernel-livepatch-6.1.109-118.1890
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra0
amazon:2023kernel-modules-extra-common0
LinuxLinux*, 6.9.7, 6.10
amazon:2023kernel0
amazon:2023kernel-libbpf-devel0

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
  • Jan 6, 2025 CVE Updated
  • Jan 7, 2026 Security Advisory (281 in total, the first dated here)
  • Apr 2, 2026 Distribution Patch (184 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-40972
vulnetix vdb fixes CVE-2024-40972

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40972/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›