{"id":"CVE-2026-142957","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:17:17.163","lastModified":"2026-12-04T04:17:31.557","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/iio/temperature/hid-sensor-temperature.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"59d0f2da35693bfbcf6ffb014213cb8e225c8928","lessThan":"2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf","versionType":"git","status":"affected"},{"version":"59d0f2da35693bfbcf6ffb014213cb8e225c8928","lessThan":"36eeb26031e90eeb81bbac3d3acad61d23fcbdf3","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/iio/temperature/hid-sensor-temperature.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"4.12","status":"affected"},{"version":"0","lessThan":"4.12","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc4","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/36eeb26031e90eeb81bbac3d3acad61d23fcbdf3","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}