net: kcm: Fix race condition in kcm_unattach()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 52565a935213cd6a8662ddb8efe5b4219343a25d, Kernel 7275dc3bb8f91b23125ff3f47b6529935cf46152, Kernel 798733ee5d5788b12e8a52db1519abc17e826f69 and 1 more.
In the Linux kernel, the following vulnerability has been resolved: net: kcm: Fix race condition in kcm_unattach() syzbot found a race condition when kcm_unattach(psock) and kcm_release(kcm) are executed at the same time. kcm_unattach() is missing a check of the flag kcm->tx_stopped before calling queue_work(). If the kcm has a reserved psock, kcm_unattach() might get executed between cancel_work_sync() and unreserve_psock() in kcm_release(), requeuing kcm->tx_work right before kcm gets freed in kcm_done(). Remove kcm->tx_stopped and replace it by the less error-prone disable_work_sync().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.6, >=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <52565a935213cd6a8662ddb8efe5b4219343a25d, >=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <7275dc3bb8f91b23125ff3f47b6529935cf46152, >=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <798733ee5d5788b12e8a52db1519abc17e826f69, >=ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 <c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308 | 52565a935213cd6a8662ddb8efe5b4219343a25d, 7275dc3bb8f91b23125ff3f47b6529935cf46152, 798733ee5d5788b12e8a52db1519abc17e826f69, c0bffbc92a1ca3960fb9cdb8e9f75a68468eb308 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket