Vulnerability record
iio: temperature: hid-sensor-temperature: Use per-instance callbacks
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:…
8.8/CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability
AV:AAC:LPR:NUI:NScope
S:UImpact
C:HI:HA:HRemediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources