mtd: rawnand: serialize lock/unlock against other NAND operations
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.203, Kernel 6.1.167, Kernel 5.10.253 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: serialize lock/unlock against other NAND operations nand_lock() and nand_unlock() call into chip->ops.lock_area/unlock_area without holding the NAND device lock. On controllers that implement SET_FEATURES via multiple low-level PIO commands, these can race with concurrent UBI/UBIFS background erase/write operations that hold the device lock, resulting in cmd_pending conflicts on the NAND controller. Add nand_get_device()/nand_release_device() around the lock/unlock operations to serialize them against all other NAND controller access.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.203, >=5.16 <6.1.167, >=5.7.1 <5.10.253, >=6.13 <6.18.20, >=6.19 <6.19.10, >=6.2 <6.6.130, >=6.7 <6.12.78, =5.7, =7.0, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <5fd5c078af23cb353507aa522e09d557d7eaef04, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <a80291e577b44593a724d6cd64c14337c78f194d, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <bab2bc6e850a697a23b9e5f0e21bb8c187615e95, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <ce5229e78078e437704157eb542f43a6f83b429b, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <f25446e2c28939753d3b62d34dfda49952b2557d, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <fe4a73c3dd48308149d57a10c2761e1d36ced7ba, >=92270086b7e5ada7ab381c06cc3da2e95ed17088 <28ea836cc44cb8b89c1c174707ead0c1133c60e9 | 5.15.203, 6.1.167, 5.10.253, 6.18.20, 6.19.10, 6.6.130, 6.12.78, 5fd5c078af23cb353507aa522e09d557d7eaef04, a80291e577b44593a724d6cd64c14337c78f194d, bab2bc6e850a697a23b9e5f0e21bb8c187615e95, ce5229e78078e437704157eb542f43a6f83b429b, f25446e2c28939753d3b62d34dfda49952b2557d, f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2, fe4a73c3dd48308149d57a10c2761e1d36ced7ba, 28ea836cc44cb8b89c1c174707ead0c1133c60e9 |
| linux-kernel: Kernel | >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=5.7.0 <5.10.253, >=6.13.0 <6.18.20, >=6.19.0 <6.19.10, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.15.203, 6.1.167, 5.10.253, 6.18.20, 6.19.10, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket