CVE-2026-142976

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

w1: remove the master's files before taking its locks

__w1_remove_master_device() calls w1_destroy_master_attributes() with both the mutex of the master and list_mutex held. Removing the files waits for the callbacks which are running, and nearly all of them take one of these two locks:

__w1_remove_master_device() read() of .../w1_master_slaves mutex_lock(&dev->mutex) kernfs active reference mutex_lock(&dev->list_mutex) w1_master_attribute_show_slaves() w1_destroy_master_attributes() mutex_lock(&md->list_mutex) sysfs_remove_group() waits waits for the reference

The files are readable for everybody, and a bus master goes away when, for instance, a DS2490 USB adapter is unplugged.

Remove the files first, before the locks are taken. That has to be done before the slaves are detached and not afterwards: as long as the files exist, a write to w1_master_add could attach a new slave behind the back of this function, which would then wait for the reference count of the master for ever. And it is done before the thread is stopped, because a write to w1_master_search wakes the thread up.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142977In the Linux kernel, the following vulnerability has been resolved: w1: netlink: drop the slave after the bus is unlocked w1_process_cb() CVE-2026-142978In the Linux kernel, the following vulnerability has been resolved: w1: ds28e04: use the bus mutex to talk on the bus Since commit b02f8beCVE-2026-142979In the Linux kernel, the following vulnerability has been resolved: w1: ds2805: use the bus mutex to talk on the bus Since commit b02f8bedCVE-2026-142986.5Mattermost versions 11.9.x <= 11.9.0, 11.8.x <= 11.8.4, 11.7.x <= 11.7.7, 10.11.x <= 10.11.22 fail to limit decompressed content size and enCVE-2026-142980In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Track a timed out End Transfer If an End Transfer cCVE-2026-142981In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Reset endpoint flags on controller start The flags CVE-2026-142982In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Reject requests to a disabled endpoint __dwc3_gadgeCVE-2026-142983In the Linux kernel, the following vulnerability has been resolved: usb: dwc3: gadget: Recover from End Transfer timeout If the End TransfCVE-2026-142984In the Linux kernel, the following vulnerability has been resolved: usb: gadget: u_serial: pin ports while TTYs are installed A slab-use-aCVE-2026-142985In the Linux kernel, the following vulnerability has been resolved: usb: gadget: u_serial: fix NULL deref in gs_close() after failed open CVE-2026-142986In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_midi: fix UAF race during IN request handling f_midi_diCVE-2026-142987In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_mass_storage: take filesem in nofua store to fix backing
CVE-2026-142976: Unscored | Vulnix