Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139685

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

Description

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).

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 7924425db04a6107e49312edf53c158590d52aae to < bc33db8baeebfa061cc1c998391629f016fc63faaffected
  • 7924425db04a6107e49312edf53c158590d52aae to < ab1a3a906040d21ecc8552e20c21da53ebdf0d9aaffected
  • 7924425db04a6107e49312edf53c158590d52aae to < f86fcec514be94cbbb49cfc67b10809b8f739e69affected
  • 7924425db04a6107e49312edf53c158590d52aae to < 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33affected
  • 7924425db04a6107e49312edf53c158590d52aae to < 8a8145d566d71da3e4fe750df91a239f40e808ecaffected
  • 7924425db04a6107e49312edf53c158590d52aae to < 6b1a74ae9038a9ace83e1091f29e77d3a657175caffected
  • 7924425db04a6107e49312edf53c158590d52aae to < 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6affected
  • 7924425db04a6107e49312edf53c158590d52aae to < 69fa76f0af3414cc189c3b0b807cb59e327ecc00affected

Linux Linux

Default version status: affected

  • 2.6.38affected
  • 0 to < 2.6.38unaffected
  • 5.10.275 to ≤ 5.10.*unaffected
  • 5.15.226 to ≤ 5.15.*unaffected
  • 6.1.193 to ≤ 6.1.*unaffected
  • 6.6.163 to ≤ 6.6.*unaffected
  • 6.12.119 to ≤ 6.12.*unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References