Technical impact
The Linux kernel staging driver for the ad7816 ADC performs SPI transfer operations that are not DMA safe. It uses a stack-allocated buffer for spi_read, shares a struct member on the same cache line for spi_write, and passes a stack parameter by reference. These violations allow DMA operations to read or write outside the intended buffer, potentially corrupting kernel memory. The applied fix replaces all calls with spi_write_then_read, which internally allocates a bounce buffer and correctly handles size arguments, thereby eliminating the DMA safety issues.
Affected Systems
All Linux kernel releases that include the staging iio/adc/ad7816 driver before the patch are affected. This includes any distribution that ships a kernel with this driver and has not applied the commit. The affected product is the Linux kernel.
Risk and Exploitability
The CVSS score is 4.7, indicating moderate severity. The EPSS score is less than 1%, reflecting a very low probability of widespread exploitation. The vulnerability is not listed in CISA KEV, suggesting no known public exploitation. Based on the description, it is inferred that practical exploitation requires local access to the SPI bus and the presence of the ad7816 device, so the risk is limited to environments with such access and would result in potential memory corruption rather than direct privilege escalation.