AZL-117851: CVE-2026-142977 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
w1: netlink: drop the slave after the bus is unlocked
w1processcb() executes the commands of a netlink message with busmutex held, and drops the reference to the slave which the message was addressed to before it unlocks the mutex. If the slave has been detached in the meantime, this is the last reference, and w1unrefslave() tears the slave down on the spot. That waits
- in deviceunregister(), for the sysfs callbacks of the slave which are running, and
- in w1thermremoveslave(), for the readers which have taken a reference to the family data,
and both kinds take busmutex to talk to the slave. Whoever is waiting for the mutex at that moment is never going to finish, and neither is the thread of the bus master.
Unlock the bus first. The reference keeps the slave, and with it the master, alive until then.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the issue?
The issue involves processing a w1 netlink message addressed to a slave while that slave is detached concurrently. The problematic path occurs when releasing the slave reference triggers teardown while the w1 bus mutex is still held.
What is the practical impact if the issue is triggered?
The teardown can wait for sysfs callbacks or family-data readers that also need the bus mutex. This creates a deadlock in which those operations and the bus-master thread cannot complete.
How can I tell whether a system is affected?
The affected software is azure-linux/kernel package version 6.6.161.1-1. Systems using that package version should be evaluated, particularly if they use w1 slaves and netlink-driven commands during device detach activity.