iio: chemical: sgp30: Handle IAQ thread creation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ce514124161ac2ceb13d10b6c40cbf05c8f0cc91 · < 2d386efb4c37a50739db19c7c8e49564fd53a570| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: chemical: sgp30: Handle IAQ thread creation failure
kthread_run() can fail and return an error pointer, but sgp_probe() stores it and returns success, so the device is registered without its IAQ thread and sgp_remove() later passes the error pointer to kthread_stop(). Return the error from probe instead.
From the CVE record · Linux
The Linux kernel sgp30 driver can register a device even when its IAQ thread fails to start. When the device is later removed, the driver passes an error pointer to kthread_stop(); the input does not specify an attacker path or access requirements.
Engineers running Linux kernels with the sgp30 driver should check their kernel versions; affected versions are not specified.