Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 9b73896a81dc68a638a011877b7344b252f92276 before 37108861cf7bd909d4a372069bcd61c8f489e232; affected 9b73896a81dc68a638a011877b7344b252f92276 before 3c70d27e792a28bca650ddd8a9aa0fe3591ffec5; affected 9b73896a81dc68a638a011877b7344b252f92276 before 1d26a6e007d46babc7fa76e5a157dccf86cd55c0; affected 9b73896a81dc68a638a011877b7344b252f92276 before b0e94ea63dbdcbfec9beb819cd5f8fa584809ef2; affected 9b73896a81dc68a638a011877b7344b252f92276 before 21526f8a191a3c50622b8c10bd927870d780eae4; affected 9b73896a81dc68a638a011877b7344b252f92276 before 292846223eaddba890e40699d2ab82ee5671798c; affected 9b73896a81dc68a638a011877b7344b252f92276 before f392affef3c9ce64dfdde794df0579e0a7793440; affected 9b73896a81dc68a638a011877b7344b252f92276 before b0346dd64e4905291cc9c479f2e6cf1884ced4e6 |
| Linux / Linux | affected 4.9; unaffected 0 before 4.9; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/37108861cf7bd909d4a372069bcd61c8f489e232
- https://git.kernel.org/stable/c/3c70d27e792a28bca650ddd8a9aa0fe3591ffec5
- https://git.kernel.org/stable/c/1d26a6e007d46babc7fa76e5a157dccf86cd55c0
- https://git.kernel.org/stable/c/b0e94ea63dbdcbfec9beb819cd5f8fa584809ef2
- https://git.kernel.org/stable/c/21526f8a191a3c50622b8c10bd927870d780eae4
- https://git.kernel.org/stable/c/292846223eaddba890e40699d2ab82ee5671798c
- https://git.kernel.org/stable/c/f392affef3c9ce64dfdde794df0579e0a7793440
- https://git.kernel.org/stable/c/b0346dd64e4905291cc9c479f2e6cf1884ced4e6