CVE-2026-139685: staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers

The SPI operations in this driver are not DMA safe: 1. spiread() uses a stack-allocated buffer. 2. spiwrite() in ad7816spiread() uses a struct member that shares a cacheline with other variables. 3. spiwrite() in ad7816spiwrite() passes a stack parameter by reference.

Fix these violations by replacing all spiread() and spiwrite() calls with spiwritethenread(). This safely handles DMA by internally allocating a bounce buffer for the transfers, avoiding cacheline sharing issues without needing dedicated aligned buffers. This implicitly corrects the size argument in read to sizeof(buf).

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Replace all spi_read() and spi_write() calls in the ad7816 driver with spi_write_then_read() to handle DMA safely.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203