iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d · < 1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()
If iio_trigger_register() returns error, it should call iio_trigger_free() to give up the reference that hold in iio_trigger_alloc(), so that it can call iio_trig_release() to free memory when the refcount hit to 0.
From the CVE record · Linux
The Linux kernel's at91_adc driver can leak memory if iio_trigger_register() returns an error during trigger allocation. The input does not establish how an attacker could cause that error or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the at91_adc driver should check their installations; affected versions are not specified.