CVE-2026-142976

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.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-06
Patch available
Yes

Affected versions

Linux kernel versions 2.6.28 and later are affected. Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4 and their respective stable series.

Affected from
≥ 2.6.28
Fixed in
✓ 5.10.276 5.10.x ✓ 5.15.227 5.15.x ✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc4

Frequently asked questions

  • What is CVE-2026-142976?

    CVE-2026-142976 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 2.6.28 onward and has been patched in 5.10.276, 5.15.227, 6.12.120 and others. CVE-2026-142976 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142976?

    Yes. CVE-2026-142976 has been patched. Fixed versions include 5.10.276, 5.15.227, 6.12.120 and others. If you are running Linux kernel 2.6.28 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-142976 actively exploited?

    No. CVE-2026-142976 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.