{"id":"CVE-2026-142957","summary":"iio: temperature: hid-sensor-temperature: Use per-instance callbacks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: temperature: hid-sensor-temperature: Use per-instance callbacks\n\nhid-sensor-temperature keeps a single static struct\nhid_sensor_hub_callbacks for all instances and overwrites its pdev in\nevery probe.  With two temperature sensors, input reports for one are\ndelivered with the other's platform device; once that device is\nremoved, platform_get_drvdata() returns NULL and\ntemperature_capture_sample() dereferences it:\n\n  BUG: kernel NULL pointer dereference, address: 00000000000003a8\n  RIP: 0010:temperature_capture_sample+0xd/0x50 [hid_sensor_temperature]\n\nThe oops happens in sensor_hub_raw_event() with the hub's spinlock\nheld, so the hub's removal then hangs.  It reproduces with two uhid\ndevices that each declare a temperature sensor, one destroyed while\nthe other still sends input reports.\n\nKeep the callbacks in struct temperature_state, as the other HID\nsensor drivers (accel, gyro, als, ...) do.","modified":"2026-12-03T11:00:25.991004985Z","published":"2026-12-03T09:16:45.876Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142957.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/2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36eeb26031e90eeb81bbac3d3acad61d23fcbdf3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142957.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142957"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"59d0f2da35693bfbcf6ffb014213cb8e225c8928"},{"fixed":"2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf"},{"fixed":"36eeb26031e90eeb81bbac3d3acad61d23fcbdf3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142957.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142957.json"}}],"schema_version":"1.9.2"}