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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:02.010Z
- Modified: 2026-11-30T14:19:56.750Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7924425db04a6107e49312edf53c158590d52aae before bc33db8baeebfa061cc1c998391629f016fc63fa; from 7924425db04a6107e49312edf53c158590d52aae before ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; from 7924425db04a6107e49312edf53c158590d52aae before f86fcec514be94cbbb49cfc67b10809b8f739e69; from 7924425db04a6107e49312edf53c158590d52aae before 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; from 7924425db04a6107e49312edf53c158590d52aae before 8a8145d566d71da3e4fe750df91a239f40e808ec; from 7924425db04a6107e49312edf53c158590d52aae before 6b1a74ae9038a9ace83e1091f29e77d3a657175c; from 7924425db04a6107e49312edf53c158590d52aae before 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; from 7924425db04a6107e49312edf53c158590d52aae before 69fa76f0af3414cc189c3b0b807cb59e327ecc00; 2.6.38 (not affected: before 2.6.38; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/bc33db8baeebfa061cc1c998391629f016fc63fa>
- <https://git.kernel.org/stable/c/ab1a3a906040d21ecc8552e20c21da53ebdf0d9a>
- <https://git.kernel.org/stable/c/f86fcec514be94cbbb49cfc67b10809b8f739e69>
- <https://git.kernel.org/stable/c/0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33>
- <https://git.kernel.org/stable/c/8a8145d566d71da3e4fe750df91a239f40e808ec>
- <https://git.kernel.org/stable/c/6b1a74ae9038a9ace83e1091f29e77d3a657175c>
- <https://git.kernel.org/stable/c/96f269ae4b18dd0819d70fab7ddaabf6e28c7de6>
- <https://git.kernel.org/stable/c/69fa76f0af3414cc189c3b0b807cb59e327ecc00>

## Sources

- CVE List: [CVE-2026-139685](https://www.cve.org/CVERecord?id=CVE-2026-139685), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139685](https://nvd.nist.gov/vuln/detail/CVE-2026-139685), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139685 · Whole record: https://cve.day/CVE-2026-139685.json · Rebuilt by cve.day 2026-11-30T14:33:30.959Z
