{"id":"CVE-2024-57904","state":"PUBLISHED","title":"iio: adc: at91: call input_free_device() on allocated iio_dev","description":"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.","publishedAt":"2025-01-19T11:52:28.982Z","updatedAt":"2026-05-11T21:00:16.336Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"b549c90bfe66f704878aa1e57b30ba15dab71935","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"ac8d932e3214c10ec641ad45a253929a596ead62","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"028a1ba8e3bae593d701aee4f690ce7c195b67d6","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"25ef52f1c15db67d890b80203a911b9a57b0bf71","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"09e067e3c83e0695d338e8a26916e3c2bc44be02","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"d115b7f3ddc03b38bb7e8754601556fe9b4fc034","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"de6a73bad1743e9e81ea5a24c178c67429ff510b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/at91_adc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.16","versionType":"semver"},{"version":"5.4.290","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.234","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.177","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.72","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.10","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/at91_adc.c"]}],"references":["https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935","https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62","https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6","https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71","https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02","https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034","https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/57xxx/CVE-2024-57904.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-57904","state":"PUBLISHED","datePublished":"2025-01-19T11:52:28.982Z","dateUpdated":"2026-05-11T21:00:16.336Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-19T11:50:08.372Z"},"containers":{"cna":{"title":"iio: adc: at91: call input_free_device() on allocated iio_dev","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"b549c90bfe66f704878aa1e57b30ba15dab71935","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"ac8d932e3214c10ec641ad45a253929a596ead62","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"028a1ba8e3bae593d701aee4f690ce7c195b67d6","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"25ef52f1c15db67d890b80203a911b9a57b0bf71","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"09e067e3c83e0695d338e8a26916e3c2bc44be02","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"d115b7f3ddc03b38bb7e8754601556fe9b4fc034","versionType":"git"},{"version":"84882b060301c35ab7e2c1ef355b0bd06b764195","status":"affected","lessThan":"de6a73bad1743e9e81ea5a24c178c67429ff510b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/at91_adc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.16","versionType":"semver"},{"version":"5.4.290","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.234","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.177","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.125","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.72","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.10","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/adc/at91_adc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935"},{"url":"https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62"},{"url":"https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6"},{"url":"https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71"},{"url":"https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02"},{"url":"https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034"},{"url":"https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:00:16.336Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"5.4.290"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"5.10.234"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"5.15.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.1.125"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.6.72"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.12.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:55:27.822Z"}}]}}}