Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: block: mtip32xx: synchronize ioctls with device removal The ioctl handlers only test REMOVE_PENDING before entering mtip_hw_ioctl(). Removal can set that bit immediately afterwards and free dd->port in mtip_hw_exit() while an ioctl still dereferences it. An already open block device can reach the handlers while del_gendisk() is in progress. Serialize both native and compat ioctls with removal. Set REMOVE_PENDING before taking the mutex so new callers fail after an in-flight ioctl has drained, and hold the mutex until the port has been torn down.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 88523a61558a040546bf7d8b079ae0755d8e7005 before 521afbd936ac256b7531470b0b9aa96abf9cd853; affected 88523a61558a040546bf7d8b079ae0755d8e7005 before 8283049aa5fcb4e84b2b2928b2888903bb8ee12e; affected 88523a61558a040546bf7d8b079ae0755d8e7005 before 8a7799597bd683b6bc251fe2edfa9fd1db568a3a; affected 88523a61558a040546bf7d8b079ae0755d8e7005 before 4609e0e0be709e974bec9b52c5022136d25e97d3; affected 88523a61558a040546bf7d8b079ae0755d8e7005 before b389dc35a55713ac24a145741e76196fea1663bc; affected 88523a61558a040546bf7d8b079ae0755d8e7005 before 68940f841d013192086a0f6d7cfbac2cd079e228 |
| Linux / Linux | affected 3.3; unaffected 0 before 3.3; 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/521afbd936ac256b7531470b0b9aa96abf9cd853
- https://git.kernel.org/stable/c/8283049aa5fcb4e84b2b2928b2888903bb8ee12e
- https://git.kernel.org/stable/c/8a7799597bd683b6bc251fe2edfa9fd1db568a3a
- https://git.kernel.org/stable/c/4609e0e0be709e974bec9b52c5022136d25e97d3
- https://git.kernel.org/stable/c/b389dc35a55713ac24a145741e76196fea1663bc
- https://git.kernel.org/stable/c/68940f841d013192086a0f6d7cfbac2cd079e228