EnvMap GitHub

CVE-2026-142976

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

Not scored yetEPSS 0.17%Received

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from c30c9b15187e977ab5928f7276e9dfcd8d6f9460 before da32f7a50135cf804947ab89f73; from c30c9b15187e977ab5928f7276e9dfcd8d6f9460 before 00a15f18d3e9780e6fa3747982e; from c30c9b15187e977ab5928f7276e9dfcd8d6f9460 before c388ba89918ee0d33e4d3097205; from c30c9b15187e977ab5928f7276e9dfcd8d6f9460 before ac2505e34311d46b4ff03eed675; 2.6.28

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.17% chance of exploitation in the next 30 days, higher than 7% of all CVEs (as of 4 December 2026).

References

Record

Published10:17 UTC, 3 December 2026
Last changed10:17 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-142976 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.