CVE-2024-57904
iio: adc: at91: call input_free_device() on allocated iio_dev
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.
INFO
Published Date :
Jan. 19, 2025, 12:15 p.m.
Last Modified :
Nov. 3, 2025, 9:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the Linux kernel to the latest stable version.
- Apply the specific patch for the at91 ADC driver vulnerability.
- Verify the correct input device freeing logic.
Public PoC/Exploit Available at Github
CVE-2024-57904 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-57904.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-57904 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-57904
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Java Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-57904 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-57904 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html Added Reference https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html -
Initial Analysis by [email protected]
Oct. 16, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.16 up to (excluding) 5.4.290 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.234 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.177 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.125 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.72 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.10 Added Reference Type kernel.org: https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 02, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62 Added Reference https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 23, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 19, 2025
Action Type Old Value New Value Added 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. Added Reference https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02 Added Reference https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71 Added Reference https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034 Added Reference https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b