iio: imu: adis16480: fix unprotected debugfs reads
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9bf94f836e32ea168ec7448a523c11480317ad79 · < ce308ce18dedc18e9eeff8473892975e6fdd7aef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: imu: adis16480: fix unprotected debugfs reads
The firmware_revision and firmware_date file operations are open coded and never call debugfs_file_get(), which debugfs_create_file_unsafe() requires. debugfs_remove_recursive() therefore does not wait for a read in progress, and unbind frees the iio_dev underneath it.
Use debugfs_create_file() instead.
From the CVE record · Linux
The Linux kernel’s adis16480 driver does not protect reads of its firmware_revision and firmware_date debugfs files during device removal. A local read in progress during unbind can access a freed iio_dev; the input does not specify an authentication requirement.
Engineers running Linux kernels with the adis16480 driver should check their kernel versions; affected versions are not specified.