USB: iowarrior: fix use-after-free on disconnect race
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12.97, Kernel 7.1.4, Kernel 3c0a7b29ebb391d5f50b115e86f842b709195b08 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: USB: iowarrior: fix use-after-free on disconnect race mutex_unlock() may access the mutex structure after releasing the lock and therefore cannot be used to manage lifetime of objects directly (unlike spinlocks and refcounts). [1][2] Use a kref to release the driver data to avoid use-after-free in mutex_unlock() when release() races with disconnect(). [1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic") [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked")
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.21.1 <6.12.97, >=6.13 <7.1.4, =2.6.21, =7.2, >=946b960d13c15f050a3b848987aaca79f6a459b7 <3c0a7b29ebb391d5f50b115e86f842b709195b08, >=946b960d13c15f050a3b848987aaca79f6a459b7 <4e7d3c98fed73d3be84d3e146d8d9be0309e725b, >=946b960d13c15f050a3b848987aaca79f6a459b7 <71590982700fdeb39a37a500c877228b0140978e, >=946b960d13c15f050a3b848987aaca79f6a459b7 <9472acd56a020c93be4189d2dba9c743b9fc8039, >=946b960d13c15f050a3b848987aaca79f6a459b7 <c602254ba4c10f60a73cd99d147874f86a3f485c, >=946b960d13c15f050a3b848987aaca79f6a459b7 <30ec3025b771511625375fb3fb959aea3b45fb0d | 6.12.97, 7.1.4, 3c0a7b29ebb391d5f50b115e86f842b709195b08, 4e7d3c98fed73d3be84d3e146d8d9be0309e725b, 71590982700fdeb39a37a500c877228b0140978e, 9472acd56a020c93be4189d2dba9c743b9fc8039, c602254ba4c10f60a73cd99d147874f86a3f485c, 30ec3025b771511625375fb3fb959aea3b45fb0d |
| linux-kernel: Kernel | >=2.6.21 <6.1.191, >=6.13.0 <6.18.58, >=6.19.0 <7.1.4, >=6.2.0 <6.6.160, >=6.7.0 <6.12.97 | 6.1.191, 6.18.58, 7.1.4, 6.6.160, 6.12.97 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket