# CVE-2024-57904: iio: adc: at91: call input_free_device() on allocated iio_dev

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-01-19T11:52:28.982Z
- Modified: 2026-06-17T08:14:11.580Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 84882b060301c35ab7e2c1ef355b0bd06b764195 before b549c90bfe66f704878aa1e57b30ba15dab71935; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before ac8d932e3214c10ec641ad45a253929a596ead62; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before 028a1ba8e3bae593d701aee4f690ce7c195b67d6; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before 25ef52f1c15db67d890b80203a911b9a57b0bf71; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before 09e067e3c83e0695d338e8a26916e3c2bc44be02; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before d115b7f3ddc03b38bb7e8754601556fe9b4fc034; from 84882b060301c35ab7e2c1ef355b0bd06b764195 before de6a73bad1743e9e81ea5a24c178c67429ff510b; 3.16 (not affected: before 3.16; from 5.4.290 up to 5.4.*; from 5.10.234 up to 5.10.*; from 5.15.177 up to 5.15.*; from 6.1.125 up to 6.1.*; from 6.6.72 up to 6.6.*; from 6.12.10 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 3.16 before 5.4.290; from 5.5 before 5.10.234; from 5.11 before 5.15.177; from 5.16 before 6.1.125; from 6.2 before 6.6.72; from 6.7 before 6.12.10; 6.13

## References

- <https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935> (patch)
- <https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62> (patch)
- <https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6> (patch)
- <https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71> (patch)
- <https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02> (patch)
- <https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034> (patch)
- <https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-57904 · Whole record: https://cve.day/CVE-2024-57904.json · Rebuilt by cve.day 2026-11-25T22:58:51.125Z
