{"id":"CVE-2024-57904","aliases":["CVE-2024-57904"],"related":[],"kind":"vulnerability","state":"published","title":"iio: adc: at91: call input_free_device() on allocated iio_dev","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: at91: call input_free_device() on allocated iio_dev\n\nCurrent implementation of at91_ts_register() calls input_free_deivce()\non st->ts_input, however, the err label can be reached before the\nallocated iio_dev is stored to st->ts_input. Thus call\ninput_free_device() on input instead of st->ts_input.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: adc: at91: call input_free_device() on allocated iio_dev\n\nCurrent implementation of at91_ts_register() calls input_free_deivce()\non st->ts_input, however, the err label can be reached before the\nallocated iio_dev is stored to st->ts_input. Thus call\ninput_free_device() on input instead of st->ts_input.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iio: adc: at91: llamar a input_free_device() en iio_dev asignado La implementación actual de at91_ts_register() llama a input_free_deivce() en st-&gt;ts_input, sin embargo, se puede llegar a la etiqueta err antes de que el iio_dev asignado se almacene en st-&gt;ts_input. Por lo tanto, se llama a input_free_device() en la entrada en lugar de a st-&gt;ts_input.","source":"nvd"}],"published":"2025-01-19T11:52:28.982Z","modified":"2026-06-17T08:14:11.580Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"b549c90bfe66f704878aa1e57b30ba15dab71935","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"ac8d932e3214c10ec641ad45a253929a596ead62","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"028a1ba8e3bae593d701aee4f690ce7c195b67d6","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"25ef52f1c15db67d890b80203a911b9a57b0bf71","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"09e067e3c83e0695d338e8a26916e3c2bc44be02","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"d115b7f3ddc03b38bb7e8754601556fe9b4fc034","status":"affected"},{"type":"git","introduced":"84882b060301c35ab7e2c1ef355b0bd06b764195","fixed":"de6a73bad1743e9e81ea5a24c178c67429ff510b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"5.4.290","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.234","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.177","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.125","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.72","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.10","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.16","fixed":"5.4.290"},{"status":"affected","introduced":"5.5","fixed":"5.10.234"},{"status":"affected","introduced":"5.11","fixed":"5.15.177"},{"status":"affected","introduced":"5.16","fixed":"6.1.125"},{"status":"affected","introduced":"6.2","fixed":"6.6.72"},{"status":"affected","introduced":"6.7","fixed":"6.12.10"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57904","url":"https://www.cve.org/CVERecord?id=CVE-2024-57904","licence":"CVE Terms of Use","modified":"2026-05-11T21:00:16.336Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57904","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57904","licence":"Public domain","modified":"2026-06-17T08:14:11.580Z"}],"updatedAt":"2026-11-25T22:58:51.125Z","epss":{"score":0.00237,"percentile":0.15789,"date":"2026-12-01T12:00:22.000Z"}}