CVE-2026-142974: w1: w1_therm: leave the slaves of other families alone
In the Linux kernel, the following vulnerability has been resolved:
w1: w1therm: leave the slaves of other families alone
The file thermbulkread belongs to the bus master. Its callbacks walk all the slaves of the bus and look at sl->familydata as if every slave were a temperature sensor. A 1-wire bus can carry other devices too:
- The family data of a slave which is driven by another driver, such as w1ds2433, w1ds250x, w1ds28e04 or w1ds28e17, is a structure of that driver. bulkreadsupport() takes whatever is at the offset of specificfunctions for a pointer and dereferences it, and if the result happens not to be 0, the callbacks write the state of the conversion into that foreign structure.
- For a slave without family data, which is the case for most of the other drivers and for the default family, triggerbulkread() gives up with -ENODEV. A single serial number chip on the bus is enough to make the bulk read unusable for all the sensors.
Only look at the slaves whose family is one of ours. A bulk conversion now works on a bus with other devices.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch w1: w1_therm: leave the slaves of other families alone
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the w1_therm bulk-read functionality on a 1-wire bus that also contains devices handled by other 1-wire family drivers are affected. Examples named in the fix include w1_ds2433, w1_ds250x, w1_ds28e04, and w1_ds28e17 devices.
How can this issue appear during operation?
Bulk reads may treat another driver's family-specific data as temperature-sensor data and write conversion state into that foreign structure. If a slave has no family data, triggering a bulk read can fail with -ENODEV; a single serial-number chip can prevent bulk reads for all sensors on the bus.