CVE-2022-49794
JSON

5.5medium

iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before c3ce73f60599a483dca7becd4112508833a40ef9, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before 2b29a7f2d52fb5281b30cf61c947d88bab18a29b, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before 7b75515728b628a9a7540f201efdeb8ca7299385, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before 85d2a8b287a89853c0dcfc5a97b5e9d36376fe37, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before 1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before c27a3b6ba23350708cf5ab9962337447b51eb76d, from 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d before 65f20301607d07ee279b0804d11a05a62a6c1a1c and 1 more
Not affected: before 3.5, from 4.9.334 up to 4.9.*, from 4.14.300 up to 4.14.*, from 4.19.267 up to 4.19.*, from 5.4.225 up to 5.4.*, from 5.10.156 up to 5.10.*
CVE List
linux linux_kernelfrom 3.5 before 4.9.334, from 4.10 before 4.14.300, from 4.15 before 4.19.267, from 4.20 before 5.4.225, from 5.5 before 5.10.156, from 5.11 before 5.15.80, from 5.16 before 6.0.10, 6.1NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: adc: at91_adc: corrige posible pérdida de memoria en at91_adc_allocate_trigger() Si iio_trigger_register() devuelve un error, debe llamar a iio_trigger_free() para renunciar a la referencia contenida en iio_trigger_alloc(), de modo que pueda llamar a iio_trig_release() para liberar memoria cuando el recuento de referencias llegue a 0.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49794 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49794 changed 2026-06-17Public domain