CVE-2024-57904 iio: adc: at91: call input_free_device() on allocated iio_dev
A null pointer dereference in the AT91 ADC driver can cause a kernel crash when error handling paths are triggered.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-57904?
CVE-2024-57904 is a high-severity vulnerability in Linux kernel, published on 19 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-57904?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-57904?
Apply the vendor's patch.
Is CVE-2024-57904 being exploited?
There is no known exploitation of CVE-2024-57904 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-57904, DEBIAN-CVE-2024-57904, GHSA-mpfv-g465-24jq, UBUNTU-CVE-2024-57904.