wifi: brcmsmac: fix UAF in brcms_free_timer()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 856dabd5f2617efb23c043be9e1b22a9e6e97c41, Kernel 050d2486e8ed2c0a23b87249ccd23e8072721391, Kernel 10eeb0b29fd7f52487c9ae573e8d79c210a0095d and 12 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: brcmsmac: fix UAF in brcms_free_timer() brcms_free_timer() calls brcms_del_timer() which uses the non-synchronous cancel_delayed_work() to cancel the timer's underlying delayed work. If the work callback (_brcms_timer) is already running, cancel_delayed_work() returns false without waiting, and brcms_free_timer() proceeds to kfree(t) while the callback still accesses t through container_of(). Add an explicit cancel_delayed_work_sync() after brcms_del_timer() to guarantee that any in-flight callback has completed before the timer structure is freed.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5b435de0d786869c95d1962121af0d7df2542009 <856dabd5f2617efb23c043be9e1b22a9e6e97c41, >=5b435de0d786869c95d1962121af0d7df2542009 <050d2486e8ed2c0a23b87249ccd23e8072721391, >=5b435de0d786869c95d1962121af0d7df2542009 <10eeb0b29fd7f52487c9ae573e8d79c210a0095d, >=5b435de0d786869c95d1962121af0d7df2542009 <1edb3ddd261e973a4d577c0547e63bfa25a8170d, >=5b435de0d786869c95d1962121af0d7df2542009 <1eeca1d5e0920fbdad6449768fd2d4364e714180, >=5b435de0d786869c95d1962121af0d7df2542009 <2a4841ff0b74b495cddd31ae324e922217fc2f13, >=5b435de0d786869c95d1962121af0d7df2542009 <74acccc928851f69184271832d690607877122af, >=5b435de0d786869c95d1962121af0d7df2542009 <777cb6bba59e875b16a1d8897a483a5fecfcd5d2, =3.2 | 856dabd5f2617efb23c043be9e1b22a9e6e97c41, 050d2486e8ed2c0a23b87249ccd23e8072721391, 10eeb0b29fd7f52487c9ae573e8d79c210a0095d, 1edb3ddd261e973a4d577c0547e63bfa25a8170d, 1eeca1d5e0920fbdad6449768fd2d4364e714180, 2a4841ff0b74b495cddd31ae324e922217fc2f13, 74acccc928851f69184271832d690607877122af, 777cb6bba59e875b16a1d8897a483a5fecfcd5d2 |
| linux-kernel: Kernel | >=5.11.0 <5.15.222, >=5.16.0 <6.1.189, >=6.13.0 <6.18.54, >=6.19.0 <7.2.8, >=6.2.0 <6.6.158, >=6.7.0 <6.12.112, >=3.2.0 <5.10.271 | 5.15.222, 6.1.189, 6.18.54, 7.2.8, 6.6.158, 6.12.112, 5.10.271 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket