CVE-2026-142979: w1: ds2805: use the bus mutex to talk on the bus
In the Linux kernel, the following vulnerability has been resolved:
w1: ds2805: 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 takes the mutex of the master in the callbacks of its eeprom file 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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Update the w1 ds2805 driver to use the bus mutex for bus transactions.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's W1 ds2805 slave driver are affected when the driver accesses the bus through its EEPROM file callbacks. The issue concerns communication with a W1 bus master and attached slaves.
What conditions can trigger the deadlock?
A deadlock can occur when a ds2805 slave disappears from the bus while an EEPROM sysfs callback is waiting for the master mutex. Slave removal waits for sysfs callbacks to finish, while the callback cannot obtain the mutex, leaving both tasks and the bus-master thread stuck.
Does the issue affect bus communication beyond the deadlock scenario?
Yes. Using the master mutex in these callbacks does not prevent other slave drivers from accessing the bus, so two bus transactions can be intermixed on the wire.