CVE-2024-57944Published Jan 21, 2025 · Jan 21Updated Oct 28
iio: adc: ti-ads1298: Add NULL check in ads1298_init
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ti-ads1298: Add NULL check in ads1298_init
devm_kasprintf() can return a NULL pointer on failure. A check on the return value of such a call in ads1298_init() is missing. Add it.
From the CVE record · Linux
The Linux kernel’s ti-ads1298 ADC driver did not check whether devm_kasprintf() returned NULL during initialization. This could lead to a NULL pointer dereference if the allocation fails. The input does not specify an attack path, authentication requirements, or user interaction.
Anyone running the Linux kernel with the ti-ads1298 ADC driver should check their kernel version; affected versions are not specified.