# CVE-2022-49794: iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-05-01T14:09:25.124Z
- Modified: 2026-06-17T05:19:09.873Z
- Weaknesses: CWE-401
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; 3.5 (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.*; from 5.15.80 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 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.1

## References

- <https://git.kernel.org/stable/c/c3ce73f60599a483dca7becd4112508833a40ef9> (patch)
- <https://git.kernel.org/stable/c/a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4> (patch)
- <https://git.kernel.org/stable/c/2b29a7f2d52fb5281b30cf61c947d88bab18a29b> (patch)
- <https://git.kernel.org/stable/c/7b75515728b628a9a7540f201efdeb8ca7299385> (patch)
- <https://git.kernel.org/stable/c/85d2a8b287a89853c0dcfc5a97b5e9d36376fe37> (patch)
- <https://git.kernel.org/stable/c/1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b> (patch)
- <https://git.kernel.org/stable/c/c27a3b6ba23350708cf5ab9962337447b51eb76d> (patch)
- <https://git.kernel.org/stable/c/65f20301607d07ee279b0804d11a05a62a6c1a1c> (patch)

## Sources

- CVE List: [CVE-2022-49794](https://www.cve.org/CVERecord?id=CVE-2022-49794), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49794](https://nvd.nist.gov/vuln/detail/CVE-2022-49794), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49794 · Whole record: https://cve.day/CVE-2022-49794.json · Rebuilt by cve.day 2026-11-25T22:58:20.873Z
