{"id":"CVE-2022-49794","summary":"iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()\n\nIf iio_trigger_register() returns error, it should call iio_trigger_free()\nto give up the reference that hold in iio_trigger_alloc(), so that it can\ncall iio_trig_release() to free memory when the refcount hit to 0.","modified":"2026-04-03T13:14:41.608946Z","published":"2025-05-01T14:09:25.124Z","related":["SUSE-SU-2025:01918-1","SUSE-SU-2025:01966-1","SUSE-SU-2025:01982-1","SUSE-SU-2025:01995-1","SUSE-SU-2025:02173-1","SUSE-SU-2025:02262-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49794.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b29a7f2d52fb5281b30cf61c947d88bab18a29b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65f20301607d07ee279b0804d11a05a62a6c1a1c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b75515728b628a9a7540f201efdeb8ca7299385"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85d2a8b287a89853c0dcfc5a97b5e9d36376fe37"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c27a3b6ba23350708cf5ab9962337447b51eb76d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c3ce73f60599a483dca7becd4112508833a40ef9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49794.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49794"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0e589d5fb3172b0dde7fdad3a4829ce5352dd30d"},{"fixed":"c3ce73f60599a483dca7becd4112508833a40ef9"},{"fixed":"a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4"},{"fixed":"2b29a7f2d52fb5281b30cf61c947d88bab18a29b"},{"fixed":"7b75515728b628a9a7540f201efdeb8ca7299385"},{"fixed":"85d2a8b287a89853c0dcfc5a97b5e9d36376fe37"},{"fixed":"1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b"},{"fixed":"c27a3b6ba23350708cf5ab9962337447b51eb76d"},{"fixed":"65f20301607d07ee279b0804d11a05a62a6c1a1c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49794.json"}}],"schema_version":"1.7.5"}