Linux
gpio: pca953x: fix pca953x_irq_bus_sync_unlock regmap lock
In the Linux kernel, the following vulnerability has been resolved: gpio: pca953x: fix pca953x_irq_bus_sync_unlock regmap lock Locking is disabled in the regmap config as this driver uses its own lock. This means that all calls to regmap functions (read or write) must hold the i2c_lock. The function pca953x_irq_bus_sync_unlock() did not do this, and it was therefore possible that multiple threads could cause an incorrect register to be read/written. A previous patch partly fixed this, but only protected the write to the interrupt mask register, and not the read from the direction register.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 58a5c93bd1a6e949267400080f07e57ffe05ec34, < 58ed56c093a857c19f04cf3db1f02d2e793aec88
- >= e2ecdddca80dd845df42376e4b0197fe97018ba2, < 5d05c4252c09ce10624be2197853c80bf87424e4
- >= bfc6444b57dc7186b6acc964705d7516cbaf3904, < 41255e64eb9dd87b0b8675f4e47a9c67bcef6e39
- >= bfc6444b57dc7186b6acc964705d7516cbaf3904, < bf3f37c2d40b51deb79aea910f28999d7c8c6b5a
- >= bfc6444b57dc7186b6acc964705d7516cbaf3904, < e6a2f5f845f50b0c4299bace5111f56d3390a090
- >= bfc6444b57dc7186b6acc964705d7516cbaf3904, < 9dc325327babe7f159e84cbe9380a45342da0585
- de7cffa53149c7b48bd1bb29b02390c9f05b7f41
- >= 6.1.101, < 6.1.191
- >= 6.6.42, < 6.6.160
- >= 6.9.11, < 6.10
Fixed in 58ed56c093a857c19f04cf3db1f02d2e793aec88, 5d05c4252c09ce10624be2197853c80bf87424e4, 41255e64eb9dd87b0b8675f4e47a9c67bcef6e39, bf3f37c2d40b51deb79aea910f28999d7c8c6b5a, e6a2f5f845f50b0c4299bace5111f56d3390a090, 9dc325327babe7f159e84cbe9380a45342da0585, 6.1.191, 6.6.160, 6.10
- 6.10
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.57, 7.1.9, 7.2
Mitigation
Upgrade Linux to 58ed56c093a857c19f04cf3db1f02d2e793aec88 or 5d05c4252c09ce10624be2197853c80bf87424e4 or 41255e64eb9dd87b0b8675f4e47a9c67bcef6e39 or bf3f37c2d40b51deb79aea910f28999d7c8c6b5a or e6a2f5f845f50b0c4299bace5111f56d3390a090 or 9dc325327babe7f159e84cbe9380a45342da0585 or 6.1.191 or 6.6.160 or 6.10 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.57 or 7.1.9 or 7.2 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.