iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4d671b71beefbfc145b971a11e0c3cabde94b673 · < 768461517a28d80fe81ea4d5d03a90cd184ea6ad| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()
Add a DMA-safe buffer and use it for spi_read() instead of a stack memory. All SPI buffers must be DMA-safe.
Since we only need up to 3 bytes, we just use a u8[] instead of __be16 and __be32 and change the conversion functions appropriately.
From the CVE record · Linux
The Linux kernel ti-adc161s626 ADC driver passes stack memory to spi_read(), although SPI buffers must be DMA-safe. The input does not specify what an attacker could do or whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the ti-adc161s626 ADC driver should check their kernel; affected versions are not specified.