iio: adc: at91: call input_free_device() on allocated iio_dev
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 84882b060301c35ab7e2c1ef355b0bd06b764195 · < d115b7f3ddc03b38bb7e8754601556fe9b4fc034| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: at91: call input_free_device() on allocated iio_dev
Current implementation of at91_ts_register() calls input_free_deivce() on st->ts_input, however, the err label can be reached before the allocated iio_dev is stored to st->ts_input. Thus call input_free_device() on input instead of st->ts_input.
From the CVE record · Linux
In the Linux kernel’s at91 ADC touchscreen registration path, an error can occur before the allocated input device is stored in the structure used for cleanup. The description does not establish what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the at91 ADC driver should check whether their kernel is affected; affected versions were not provided.