CVE-2024-57904

iio: adc: at91: call input_free_device() on allocated iio_dev

HIGH
7.8
CVSS Score
Published: January 19, 2025 at 11:52 AM UTC
Updated: June 17, 2026 at 08:14 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.16 ≤ v < 5.10.2343.16 ≤ v < 5.15.1773.16 ≤ v < 5.4.2903.16 ≤ v < 6.1.1253.16 ≤ v < 6.12.103.16 ≤ v < 6.133.16 ≤ v < 6.6.725.11 ≤ v < 5.15.1775.16 ≤ v < 6.1.1255.5 ≤ v < 5.10.2346.2 ≤ v < 6.6.726.7 ≤ v < 6.12.103.166.13 rc16.13 rc26.13 rc36.13 rc46.13 rc56.13 rc684882b060301c35ab7e2c1ef355b0bd06b764195
Vendor states this is fixed in 028a1ba8e3bae593d701aee4f690ce7c195b67d6 (fixed)
Vendor states this is fixed in 09e067e3c83e0695d338e8a26916e3c2bc44be02 (fixed)
Vendor states this is fixed in 25ef52f1c15db67d890b80203a911b9a57b0bf71 (fixed)
Vendor states this is fixed in ac8d932e3214c10ec641ad45a253929a596ead62 (fixed)
Vendor states this is fixed in b549c90bfe66f704878aa1e57b30ba15dab71935 (fixed)
Vendor states this is fixed in d115b7f3ddc03b38bb7e8754601556fe9b4fc034 (fixed)
Vendor states this is fixed in de6a73bad1743e9e81ea5a24c178c67429ff510b (fixed)
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 5.10.234 (unaffected)
Vendor states this is fixed in 5.15.177 (unaffected)
Vendor states this is fixed in 5.4.290 (unaffected)
Vendor states this is fixed in 6.1.125 (unaffected)
Vendor states this is fixed in 6.12.10 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.72 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card