CVE-2024-40972
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.109-118.189.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.109-118.189.amzn2023 |
| perf | Amazon Linux | 6.1.109-118.189.amzn2023 |
| bpftool | Amazon Linux | 6.1.109-118.189.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.109-118.189.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.109-118.189.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.109-118.189.amzn2023 |
| linux_kernel | linux | 6.9.7, 6.6.47, 6.1.107 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e50e5129f384ae282adebfb561189cdb19b81cee, e50e5129f384ae282adebfb561189cdb19b81cee, e50e5129f384ae282adebfb561189cdb19b81cee |
| Linux | Linux | 4.13, 0, 6.1.107 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 4.13, 4.13, 4.13 |
| amazon:2023 | kernel-livepatch-6.1.109-118.189 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | *, 6.9.7, 6.10 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
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