CVE-2026-142977
w1: netlink: drop the slave after the bus is unlocked
Description
In the Linux kernel, the following vulnerability has been resolved: w1: netlink: drop the slave after the bus is unlocked w1_process_cb() executes the commands of a netlink message with bus_mutex 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 w1_unref_slave() tears the slave down on the spot. That waits - in device_unregister(), for the sysfs callbacks of the slave which are running, and - in w1_therm_remove_slave(), for the readers which have taken a reference to the family data, and both kinds take bus_mutex 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.
INFO
Published Date :
Dec. 3, 2026, 10:17 a.m.
Last Modified :
Dec. 3, 2026, 10:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Unlock the bus mutex before message processing.
- Ensure slave reference is maintained until bus is unlocked.
- Apply kernel patches addressing the race condition.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-142977.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-142977 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-142977
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-142977 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-142977 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 03, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: w1: netlink: drop the slave after the bus is unlocked w1_process_cb() executes the commands of a netlink message with bus_mutex 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 w1_unref_slave() tears the slave down on the spot. That waits - in device_unregister(), for the sysfs callbacks of the slave which are running, and - in w1_therm_remove_slave(), for the readers which have taken a reference to the family data, and both kinds take bus_mutex 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/142xxx/CVE-2026-142977.json">CVE-2026-142977</a> Added Reference https://git.kernel.org/stable/c/016d555ff77ff6c82a4bbb31f4cde337bda46d31 Added Reference https://git.kernel.org/stable/c/4187e08612650fbb597a998bc5889b46d887425c Added Reference https://git.kernel.org/stable/c/61807c07ab2baec1e238d53b5bcf0f67cf1adec4 Added Reference https://git.kernel.org/stable/c/61ea257fec4085dbd4795f759eedf01ac1166fff Added Reference https://git.kernel.org/stable/c/847fa880a3e1b2fdbbf72d89e830566108457637 Added Reference https://git.kernel.org/stable/c/bed1bba433a5ba23463e204833a8b1506ffb7f55