AZL-117845: CVE-2026-142975 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
w1: use the bus mutex for the "rw" file
Commit b02f8bede217 ("W1: split master mutex to avoid deadlocks.") gave the bus a mutex of its own, because the lock which protects the list of slaves is held while a slave is removed, which waits for the sysfs callbacks of the slave, so these must not take it. It converted all the slave drivers, but not the "rw" file of the default family in w1.c, which still takes the mutex of the master to talk on the bus. That has two consequences:
- A deadlock. w1process() holds the mutex of the master while it searches the bus and detaches the slaves which have gone:
w1process() read() of .../rw mutexlock(&dev->mutex) kernfs active reference w1searchprocess() rwread() w1slavedetach() mutexlock(&master->mutex) w1unrefslave() waits deviceunregister() waits for the reference
The file is readable for everybody.
- The accesses through this file are not serialised with those of the slave drivers, which take busmutex, so that two transactions can get mixed up on the wire.
Take busmutex here as well. It also excludes the search, which takes it for every pass.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch b02f8bede217
Event History
Frequently Asked Questions
Who can trigger the deadlock condition?
The affected "rw" file is readable by everybody. A user who can read that file can participate in the deadlock scenario when bus scanning and slave removal occur.
What are the operational consequences besides a deadlock?
Accesses through the "rw" file are not serialized with accesses from slave drivers. This can cause two bus transactions to be mixed on the wire.
How can I identify a potentially affected installation?
The affected package identified in the available data is the Azure Linux kernel package version 6.6.161.1-1. The issue concerns the W1 subsystem's "rw" file and its locking behavior.