AZL-117794: CVE-2026-142957 affecting package kernel 6.6.161.1-1
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 hidsensorhubcallbacks 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, platformgetdrvdata() returns NULL and temperaturecapturesample() dereferences it:
BUG: kernel NULL pointer dereference, address: 00000000000003a8 RIP: 0010:temperaturecapturesample+0xd/0x50 [hidsensortemperature]
The oops happens in sensorhubrawevent() 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 temperaturestate, as the other HID sensor drivers (accel, gyro, als, ...) do.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using two HID temperature sensor instances are exposed when their drivers share the static callback structure. The reported failure scenario uses two uhid devices that each declare a temperature sensor.
What must happen for an attacker or test case to trigger the failure?
One temperature sensor device must be destroyed or removed while the other continues sending input reports. Reports from the remaining sensor can then be associated with the removed device, causing its driver data lookup to return NULL.
What is the operational impact of a successful trigger?
The kernel can hit a NULL pointer dereference in temperature_capture_sample() during sensor_hub_raw_event(). Because the event runs while the sensor hub spinlock is held, subsequent hub removal can hang.
How can I recognize that this issue has occurred?
Affected systems may log a kernel oops showing a NULL pointer dereference at temperature_capture_sample() in the hid_sensor_temperature module. The sensor hub may also hang during removal after the oops.