CVE-2026-142957

Source
https://cve.org/CVERecord?id=CVE-2026-142957
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142957.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142957
Downstream
Published
2026-12-03T09:16:45Z
Modified
2026-12-03T11:00:25Z
Summary
iio: temperature: hid-sensor-temperature: Use per-instance callbacks
Details

In the Linux kernel, the following vulnerability has been resolved:

iio: temperature: hid-sensor-temperature: Use per-instance callbacks

hid-sensor-temperature keeps a single static struct hid_sensor_hub_callbacks for all instances and overwrites its pdev in every probe. With two temperature sensors, input reports for one are delivered with the other's platform device; once that device is removed, platform_get_drvdata() returns NULL and temperature_capture_sample() dereferences it:

BUG: kernel NULL pointer dereference, address: 00000000000003a8 RIP: 0010:temperature_capture_sample+0xd/0x50 [hid_sensor_temperature]

The oops happens in sensor_hub_raw_event() with the hub's spinlock held, so the hub's removal then hangs. It reproduces with two uhid devices that each declare a temperature sensor, one destroyed while the other still sends input reports.

Keep the callbacks in struct temperature_state, as the other HID sensor drivers (accel, gyro, als, ...) do.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142957.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"