Linux
spi: mpc52xx: fix use-after-free on registration failure
In the Linux kernel, the following vulnerability has been resolved: spi: mpc52xx: fix use-after-free on registration failure Make sure to disable and free the interrupts in case controller registration fails to avoid a potential use-after-free and resource leak. This issue was flagged by Sashiko when reviewing a controller deregistration fix.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < b25eb3d24d03e571f09c04a0522c798ea35e48a1
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < dd74a790818ebb9a2be3a94ac935a374755cd278
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < 8b49b6aadd0c622ca7d68b4a53ae10362e221cf3
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < 336d9ad7560b3baba17af06727a888040ee93390
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < 5c77f11b9b5f1ad5a704dad875260c44016ede10
- >= 42bbb70980f3720b0ae6da6af862af0e95a04351, < f62c060272b9d7423b1650b844e8e4e7b8f9f925
Fixed in b25eb3d24d03e571f09c04a0522c798ea35e48a1, dd74a790818ebb9a2be3a94ac935a374755cd278, 8b49b6aadd0c622ca7d68b4a53ae10362e221cf3, 336d9ad7560b3baba17af06727a888040ee93390, 5c77f11b9b5f1ad5a704dad875260c44016ede10, f62c060272b9d7423b1650b844e8e4e7b8f9f925
- 2.6.33
Fixed in 0, 6.1.191, 6.6.160, 6.12.90, 6.18.32, 7.0.9, 7.1
Mitigation
Upgrade Linux to b25eb3d24d03e571f09c04a0522c798ea35e48a1 or dd74a790818ebb9a2be3a94ac935a374755cd278 or 8b49b6aadd0c622ca7d68b4a53ae10362e221cf3 or 336d9ad7560b3baba17af06727a888040ee93390 or 5c77f11b9b5f1ad5a704dad875260c44016ede10 or f62c060272b9d7423b1650b844e8e4e7b8f9f925 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.90 or 6.18.32 or 7.0.9 or 7.1 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.