{"id":"CVE-2026-142975","summary":"w1: use the bus mutex for the \"rw\" file","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nw1: use the bus mutex for the \"rw\" file\n\nCommit b02f8bede217 (\"W1: split master mutex to avoid deadlocks.\") gave\nthe bus a mutex of its own, because the lock which protects the list of\nslaves is held while a slave is removed, which waits for the sysfs\ncallbacks of the slave, so these must not take it.  It converted all the\nslave drivers, but not the \"rw\" file of the default family in w1.c,\nwhich still takes the mutex of the master to talk on the bus.  That has\ntwo consequences:\n\n- A deadlock.  w1_process() holds the mutex of the master while it\n  searches the bus and detaches the slaves which have gone:\n\n    w1_process()                        read() of .../rw\n      mutex_lock(&dev-\u003emutex)             kernfs active reference\n      w1_search_process()                 rw_read()\n        w1_slave_detach()                   mutex_lock(&master-\u003emutex)\n          w1_unref_slave()                    waits\n            device_unregister()\n              waits for the reference\n\n  The file is readable for everybody.\n\n- The accesses through this file are not serialised with those of the\n  slave drivers, which take bus_mutex, so that two transactions can get\n  mixed up on the wire.\n\nTake bus_mutex here as well.  It also excludes the search, which takes it\nfor every pass.","modified":"2026-12-03T11:00:30.205736740Z","published":"2026-12-03T09:17:05.669Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142975.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6f9fc6db4e225e4b6d5c5c3959e6417984259047"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7109d4e308d6d7415b7e58866fdd294edd7f4385"},{"type":"WEB","url":"https://git.kernel.org/stable/c/715c04b8f07dda99e68f382e61ff31a4ae2edfb3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8599e08648c0b4913ea7b202511f1294d176e793"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0548cc2d0c28739623a73f2de542914153ad32f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e91eecae227be8febe053cb71437e7850ddcced2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142975.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142975"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b02f8bede217a4b145ecc16d3940c78d83941147"},{"fixed":"d0548cc2d0c28739623a73f2de542914153ad32f"},{"fixed":"6f9fc6db4e225e4b6d5c5c3959e6417984259047"},{"fixed":"e91eecae227be8febe053cb71437e7850ddcced2"},{"fixed":"7109d4e308d6d7415b7e58866fdd294edd7f4385"},{"fixed":"715c04b8f07dda99e68f382e61ff31a4ae2edfb3"},{"fixed":"8599e08648c0b4913ea7b202511f1294d176e793"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142975.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142975.json"}}],"schema_version":"1.9.2"}