iio: pressure: dps310: fix NULL pointer dereference on ACPI probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 72ff282819d0526d3e4417c2a61414557981b5af · < 26e9213898fc949923188ef0aeea31fc87708836| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: pressure: dps310: fix NULL pointer dereference on ACPI probe
When the device is enumerated through its ACPI HID (IFX3100), i2c_client_get_device_id() returns NULL: the ACPI-derived client name does not match the driver's i2c_device_id table. dps310_probe() then dereferences that NULL pointer in "iio->name = id->name" and crashes the kernel during probe.
The IIO device name is always "dps310", so set it directly and drop the now-unused device-id lookup.
From the CVE record · Linux
The Linux kernel dps310 pressure driver dereferences a NULL pointer when a device is enumerated through its ACPI HID (IFX3100), crashing the kernel during probe. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the dps310 pressure driver and an ACPI-enumerated IFX3100 device should check; affected versions are not specified.