Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-40972

kernel: ext4: do not create EA inode under buffer lock

Overview

Published
12 Jul 2024
Modified
17 Jun 2026
Medium CVE
0 Registry packages
186 OS packages
14 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

5.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-667

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 71 fixes

Oracle Linux 2 releases · 2 packages

fixed 3
bpftool kernel
Oracle Linux fixes for CVE-2024-40972
ReleasePackageFixed in
8 bpftool +19 4.18.0-553.22.1.el8_10
9 kernel +27 5.14.0-427.42.1.el9_4
9 bpftool 7.3.0-427.42.1.el9_4

Photon OS 1 release · 1 package

fixed 1
bpftool
Photon OS fixes for CVE-2024-40972
ReleasePackageFixed in
5.0 bpftool +10 6.1.177-1.ph5

Red Hat 3 releases · 3 packages

eol 1 fixed 4 wont fix 1
bpftool kernel-rt kernel
Red Hat fixes for CVE-2024-40972
ReleasePackageFixed inAdvisory
7 bpftool +25 eol —
8 bpftool +22 0:4.18.0-553.22.1.el8_10 RHSA-2024:7000
8 kernel-rt +11 0:4.18.0-553.22.1.rt7.363.el8_10 RHSA-2024:7001
9 kernel-rt +20 wont fix —
9 kernel +60 0:5.14.0-427.42.1.el9_4 RHSA-2024:8617
9 bpftool 0:7.3.0-427.42.1.el9_4 RHSA-2024:8617

SUSE Linux Enterprise 2 releases · 9 packages

fixed 13
kernel-livepatch-5-14-21-150500-13-64-rt kernel-livepatch-5-14-21-150500-55-73-default kernel-azure cluster-md-kmp-default kernel-default-base kernel-docs +3
SUSE Linux Enterprise fixes for CVE-2024-40972
ReleasePackageFixed inAdvisory
15.5 kernel-livepatch-5-14-21-150500-13-64-rt 1-150500.11.3.1 SUSE-SU-2024:2894-1
15.5 kernel-livepatch-5-14-21-150500-55-73-default 1-150500.11.3.1 SUSE-SU-2024:2939-1
15.5 kernel-azure +4 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
15.5 cluster-md-kmp-default +17 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
15.5 kernel-default-base 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
15.5 kernel-docs 5.14.21-150500.55.73.2 SUSE-SU-2024:2939-1

7 more rows

SUSE Linux Enterprise Micro 2 releases · 4 packages

fixed 6
kernel-rt kernel-default kernel-default-base kernel-devel-rt
SUSE Linux Enterprise Micro fixes for CVE-2024-40972
ReleasePackageFixed inAdvisory
5.5 kernel-rt +1 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
5.5 kernel-default 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
5.5 kernel-default-base 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
6.0 kernel-default-base 6.4.0-17.1.1.51 SUSE-SU-2025:20008-1
6.0 kernel-default +5 6.4.0-18.1 SUSE-SU-2025:20008-1
6.0 kernel-devel-rt +2 6.4.0-9.1 SUSE-SU-2025:20028-1

alma 2 releases · 3 packages

fixed 4
bpftool kernel-rt kernel
alma fixes for CVE-2024-40972
ReleasePackageFixed in
8 bpftool +19 4.18.0-553.22.1.el8_10
8 kernel-rt +11 4.18.0-553.22.1.rt7.363.el8_10
9 kernel +39 5.14.0-427.42.1.el9_4
9 bpftool 7.3.0-427.42.1.el9_4

amazon linux 1 release · 2 packages

fixed 2
kernel-livepatch-6-1-109-118-189 bpftool
amazon linux fixes for CVE-2024-40972
ReleasePackageFixed in
2023 kernel-livepatch-6-1-109-118-189 1.0-0.amzn2023
2023 bpftool +19 6.1.109-118.189.amzn2023

debian 4 releases · 2 packages

affected 1 fixed 4
linux linux-6-1
debian fixes for CVE-2024-40972
ReleasePackageFixed in
11 linux affected
11 linux-6-1 6.1.119-1~deb11u1
12 linux 6.1.112-1
13 linux 6.9.7-1
14 linux 6.9.7-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2024-40972
ReleasePackageFixed in
linux 6.9.7-1

openSUSE Leap Micro 1 release · 3 packages

fixed 3
kernel-rt kernel-default kernel-default-base
openSUSE Leap Micro fixes for CVE-2024-40972
ReleasePackageFixed inAdvisory
5.5 kernel-rt 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
5.5 kernel-default 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
5.5 kernel-default-base 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1

rocky 2 releases · 2 packages

fixed 3
bpftool kernel
rocky fixes for CVE-2024-40972
ReleasePackageFixed in
8 bpftool +20 4.18.0-553.22.1.el8_10
9 kernel +38 5.14.0-427.42.1.el9_4
9 bpftool 7.3.0-427.42.1.el9_4

root.io debian 3 releases · 2 packages

fixed 3
linux rootio-linux
root.io debian fixes for CVE-2024-40972
ReleasePackageFixed in
11 linux +1 5.10.251-5.root.io.85
12 rootio-linux 6.1.112-1
13 rootio-linux 6.9.7-1

root.io ubuntu 2 releases · 2 packages

fixed 2
linux rootio-linux
root.io ubuntu fixes for CVE-2024-40972
ReleasePackageFixed in
22.04 linux +1 5.15.0-179.189.root.io.88
24.04 rootio-linux 6.8.0-44.44

ubuntu 4 releases · 16 packages

affected 3 fixed 16
linux linux-ibm-6-8 linux-nvidia-6-8 linux-azure-6-8 linux-aws-6-8 linux-lowlatency-hwe-6-8 +10
ubuntu fixes for CVE-2024-40972
ReleasePackageFixed in
18.04-ESM linux +12 affected
20.04-ESM linux +21 affected
22.04 linux +16 affected
22.04 linux-ibm-6-8 +1 6.8.0-1012.12~22.04.1
22.04 linux-nvidia-6-8 6.8.0-1013.14~22.04.1
22.04 linux-azure-6-8 +1 6.8.0-1014.16~22.04.1

13 more rows

References

Show all 329 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.