Linux
mtd: rawnand: serialize lock/unlock against other NAND operations
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < 28ea836cc44cb8b89c1c174707ead0c1133c60e9
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < fe4a73c3dd48308149d57a10c2761e1d36ced7ba
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < ce5229e78078e437704157eb542f43a6f83b429b
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < a80291e577b44593a724d6cd64c14337c78f194d
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < 5fd5c078af23cb353507aa522e09d557d7eaef04
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < f25446e2c28939753d3b62d34dfda49952b2557d
- >= 92270086b7e5ada7ab381c06cc3da2e95ed17088, < bab2bc6e850a697a23b9e5f0e21bb8c187615e95
Fixed in 28ea836cc44cb8b89c1c174707ead0c1133c60e9, fe4a73c3dd48308149d57a10c2761e1d36ced7ba, ce5229e78078e437704157eb542f43a6f83b429b, a80291e577b44593a724d6cd64c14337c78f194d, f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2, 5fd5c078af23cb353507aa522e09d557d7eaef04, f25446e2c28939753d3b62d34dfda49952b2557d, bab2bc6e850a697a23b9e5f0e21bb8c187615e95
- 5.7
Fixed in 0, 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10, 7.0
Mitigation
Upgrade Linux to 28ea836cc44cb8b89c1c174707ead0c1133c60e9 or fe4a73c3dd48308149d57a10c2761e1d36ced7ba or ce5229e78078e437704157eb542f43a6f83b429b or a80291e577b44593a724d6cd64c14337c78f194d or f71ce0ae5aefe39dd5b2f996c0e08550d2153ad2 or 5fd5c078af23cb353507aa522e09d557d7eaef04 or f25446e2c28939753d3b62d34dfda49952b2557d or bab2bc6e850a697a23b9e5f0e21bb8c187615e95 or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.167 or 6.6.130 or 6.12.78 or 6.18.20 or 6.19.10 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.