CVE-2026-142978: w1: ds28e04: use the bus mutex to talk on the bus
In the Linux kernel, the following vulnerability has been resolved:
w1: ds28e04: use the bus mutex to talk on the bus
Since commit b02f8bede217 ("W1: split master mutex to avoid deadlocks.") the slave drivers serialise their accesses to the bus with busmutex. This driver, which was merged shortly afterwards, takes the mutex of the master in the callbacks of its eeprom and pio files instead.
That mutex is held while a slave which has disappeared from the bus is removed, which waits for the sysfs callbacks of the slave to return. A callback which is waiting for the mutex at that moment never does: both tasks are stuck, and with them the thread of the bus master.
Besides, it does not keep the other slave drivers off the bus, so that two transactions can get mixed up on the wire.
Affected Software
Event History
Frequently Asked Questions
What conditions are needed to trigger the deadlock?
A sysfs callback for the DS28E04 EEPROM or PIO interface must be waiting on the master mutex while the corresponding slave disappears and is being removed. Removal holds that mutex and waits for the callback to finish, leaving both tasks and the bus-master thread stuck.
What operational impact can occur besides the deadlock?
The driver does not use the bus mutex to exclude other slave drivers during its bus accesses. As a result, transactions from different drivers can overlap and become mixed on the wire.
How can an administrator recognize a potentially affected system?
A likely symptom is a stalled bus-master thread together with sysfs operations on a DS28E04 device that do not return during or after device disappearance/removal. Bus communication may also show corrupted or interleaved transactions when other slave drivers access the same bus.