audit: fix potential use-after-free in audit_del_rule()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.265, 5.15.216, 6.1.183, 6.6.151, 6.12.103, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: audit: fix potential use-after-free in audit_del_rule() `audit_del_rule()` destroys `e->rule.exe` via `audit_remove_mark_rule()` before unlinking the rule from RCU-visible filter lists and waiting for a grace period. Concurrent readers in `audit_filter()` and `audit_filter_rules()` still dereference `e->rule.exe`, while the fsnotify mark can be freed on an independent lifetime path. This creates a use-after-free window during rule deletion. Fix this by unlinking the rule from the RCU-visible lists and invoking `synchronize_rcu()` before calling `audit_remove_mark_rule()` (and other rule removal helpers). This ensures that all existing RCU readers have exited the critical section before any underlying resources are destroyed.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 93616c567469510b7bba55b2674e0c4523fd7e64; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 3f82927b399d7a276c0c12b6ff4424b747a0c9a7; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 8ae135a8962be9d4e8a131eb18eb06cdf02a47ce; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 45bf3df5b32e5a49953e7ceabc55f7dd85380e46; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 78bde7e9bd36eaae1b8e8cfcd47f12a34f301dbf; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in cae0dfed5d307b240bff71c3cf206652d1b6f215; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 5b8f46864f06d6dbacb7dcea52bc084dfd122638; From 34d99af52ad40bd498ba66970579a5bc1fb1a3bc · fixed in 246df90b5f1a8a6e6abbd2f058b029558720adec
- Linux Linux
4.3
- KernelLinux
From 4.3.0 · fixed in 5.10.265; From 5.11.0 · fixed in 5.15.216; From 5.16.0 · fixed in 6.1.183; From 6.2.0 · fixed in 6.6.151; From 6.7.0 · fixed in 6.12.103; From 6.13.0 · fixed in 6.18.44; From 6.19.0 · fixed in 7.1.8
References 8
git.kernel.org
- stable/c/93616c567469510b7bba55b2674e0c4523fd7e64
- stable/c/3f82927b399d7a276c0c12b6ff4424b747a0c9a7
- stable/c/8ae135a8962be9d4e8a131eb18eb06cdf02a47ce
- stable/c/45bf3df5b32e5a49953e7ceabc55f7dd85380e46
- stable/c/78bde7e9bd36eaae1b8e8cfcd47f12a34f301dbf
- stable/c/cae0dfed5d307b240bff71c3cf206652d1b6f215
- stable/c/5b8f46864f06d6dbacb7dcea52bc084dfd122638
- stable/c/246df90b5f1a8a6e6abbd2f058b029558720adec