Skip to content
Medium 4.7

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

CVE-2026-139685 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 2.6.38, < 5.10.275→ 5.10.275
≥ 5.11.0, < 5.15.226→ 5.15.226
≥ 5.16.0, < 6.1.193→ 6.1.193
≥ 6.2.0, < 6.6.163→ 6.6.163
≥ 6.7.0, < 6.12.119→ 6.12.119
≥ 6.13.0, < 6.18.65→ 6.18.65
≥ 6.19.0, < 7.3.6→ 7.3.6

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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. spi_read() uses a stack-allocated buffer.
  2. spi_write() in ad7816_spi_read() uses a struct member that shares a
    cacheline with other variables.
  3. spi_write() in ad7816_spi_write() passes a stack parameter by
    reference.

Fix these violations by replacing all spi_read() and spi_write() calls
with spi_write_then_read(). 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).

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details