net: kcm: Hold RCU read lock while running BPF parser
- 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.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 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
Summary
In the Linux kernel, the following vulnerability has been resolved: net: kcm: Hold RCU read lock while running BPF parser kcm_parse_func_strparser() calls bpf_prog_run_pin_on_cpu() which prevents CPU migration, but does not establish an RCU read-side critical section. Consequently, BPF map operations can trigger WARN_ON_ONCE(!bpf_rcu_lock_held()) when called from the KCM strparser program. Hold the RCU read lock while running the program.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in 37108861cf7bd909d4a372069bcd61c8f489e232; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in 3c70d27e792a28bca650ddd8a9aa0fe3591ffec5; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in 1d26a6e007d46babc7fa76e5a157dccf86cd55c0; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in b0e94ea63dbdcbfec9beb819cd5f8fa584809ef2; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in 21526f8a191a3c50622b8c10bd927870d780eae4; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in 292846223eaddba890e40699d2ab82ee5671798c; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in f392affef3c9ce64dfdde794df0579e0a7793440; From 9b73896a81dc68a638a011877b7344b252f92276 · fixed in b0346dd64e4905291cc9c479f2e6cf1884ced4e6
- Linux Linux
4.9
- KernelLinux
From 4.9.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/37108861cf7bd909d4a372069bcd61c8f489e232
- stable/c/3c70d27e792a28bca650ddd8a9aa0fe3591ffec5
- stable/c/1d26a6e007d46babc7fa76e5a157dccf86cd55c0
- stable/c/b0e94ea63dbdcbfec9beb819cd5f8fa584809ef2
- stable/c/21526f8a191a3c50622b8c10bd927870d780eae4
- stable/c/292846223eaddba890e40699d2ab82ee5671798c
- stable/c/f392affef3c9ce64dfdde794df0579e0a7793440
- stable/c/b0346dd64e4905291cc9c479f2e6cf1884ced4e6