CVE-2024-40947

Host crash via IMA RCU use-after-free

Published Jul 12, 2024 · Updated Aug 5, 2026

Use-after-free in the Linux kernel IMA subsystem allows local users to crash the host during concurrent security-policy updates. ima_lsm_copy_rule allocates with GFP_KERNEL inside ima_match_policy's RCU read-side critical section, so a sleep can let synchronize_rcu return before the reader finishes and expose a freed rule entry. The race requires ordinary local file opens, memory pressure, a non-PREEMPT kernel, and a concurrent administrator-triggered LSM policy update; the demonstrated consequence is a kernel panic.

CVSS severity7.8
High
EPSS probability0.26%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Use-after-free in the Linux kernel IMA subsystem allows local users to crash the host during concurrent security-policy updates. ima_lsm_copy_rule allocates with GFP_KERNEL inside ima_match_policy's RCU read-side critical section, so a sleep can let synchronize_rcu return before the reader finishes and expose a freed rule entry. The race requires ordinary local file opens, memory pressure, a non-PREEMPT kernel, and a concurrent administrator-triggered LSM policy update; the demonstrated consequence is a kernel panic.

The record

CVE
CVE-2024-40947
Published
Jul 12, 2024
Updated
Aug 5, 2026
Vendor
The Linux Kernel Organization
Product
Linux
Classifications
CWE-476, T1499.004
Attack vector
local
Privileges
authenticated

Timeline

How it unfolded

  1. Jul 12, 2024CVE publishedPublication date reported by the CVE source.
  2. Aug 5, 2026Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=2d4bc60693c4206c64723e94ae5f7a04c0b8f18f <a38e02265c681b51997a264aaf743095e2ee400a
  2. Affected versionversion=38d48fd224036717fcb3437e7af1314f6ebcd2d0
  3. Affected versionversion=5.10.163 <5.10.222
  4. Affected versionversion=5.15.86 <5.15.163
  5. Affected versionversion=5.4.229 <5.5
  6. Affected versionversion=6.0.16 <6.1
  7. Affected versionversion=6.1.2 <6.1.98
  8. Affected versionversion=6.2
  9. Affected versionversion=69c60b2a2dbb4887739d3a13297cc0dae3793f35
  10. Affected versionversion=8008f1691c15f353f5a53dc5d450b8262cb57421 <9c3906c3738562b1fedc6f1cfc81756a7cfefff0
  11. Affected versionversion=c4b035b1f036ddd53fbfced49046e586c5ad8a3e <a6176a802c4bfb83bf7524591aa75f44a639a853
  12. Affected versionversion=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <28d0ecc52f6c927d0e9ba70a4f2c1ea15453ee88
  13. Affected versionversion=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <58275455893066149e9f4df2223ab2fdbdc59f9c
  14. Affected versionversion=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <9a95c5bfbf02a0a7f5983280fe284a0ff0836c34

What conditions does exploitation require?

Attack vectorlocal
Required privilegesauthenticated

What is affected?

The Linux Kernel Organization · Linuxversion=2d4bc60693c4206c64723e94ae5f7a04c0b8f18f <a38e02265c681b51997a264aaf743095e2ee400a; version=38d48fd224036717fcb3437e7af1314f6ebcd2d0; version=5.10.163 <5.10.222; version=5.15.86 <5.15.163; version=5.4.229 <5.5; version=6.0.16 <6.1; version=6.1.2 <6.1.98; version=6.2; version=69c60b2a2dbb4887739d3a13297cc0dae3793f35; version=8008f1691c15f353f5a53dc5d450b8262cb57421 <9c3906c3738562b1fedc6f1cfc81756a7cfefff0; version=c4b035b1f036ddd53fbfced49046e586c5ad8a3e <a6176a802c4bfb83bf7524591aa75f44a639a853; version=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <28d0ecc52f6c927d0e9ba70a4f2c1ea15453ee88; version=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <58275455893066149e9f4df2223ab2fdbdc59f9c; version=c7423dbdbc9ecef7fff5239d144cad4b9887f4de <9a95c5bfbf02a0a7f5983280fe284a0ff0836c34

Published CVSS scores

7.8Linux Kernel CNACVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
5.5NIST NVDCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-476NULL Pointer Dereference
T1499.004Application or System Exploitation

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo