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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:02.010Z
- **Modified:** 2026-11-30T14:19:56.750Z

> **AI summary (AI-generated, claude-haiku-5-5):** A flaw in the Linux kernel's ad7816 IIO ADC staging driver made SPI transfers unsafe for DMA, which could corrupt memory or data during device reads and writes.

## Who should check

- Anyone running Linux \>= 7924425db04a6107e49312edf53c158590d52aae, \< bc33db8baeebfa061cc1c998391629f016fc63fa; \>= 7924425db04a6107e49312edf53c158590d52aae, \< ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; \>= 7924425db04a6107e49312edf53c158590d52aae, \< f86fcec514be94cbbb49cfc67b10809b8f739e69; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 8a8145d566d71da3e4fe750df91a239f40e808ec; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 6b1a74ae9038a9ace83e1091f29e77d3a657175c; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 69fa76f0af3414cc189c3b0b807cb59e327ecc00
- Anyone running Linux 2.6.38

## 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 and fixed versions

- Linux: \>= 7924425db04a6107e49312edf53c158590d52aae, \< bc33db8baeebfa061cc1c998391629f016fc63fa; \>= 7924425db04a6107e49312edf53c158590d52aae, \< ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; \>= 7924425db04a6107e49312edf53c158590d52aae, \< f86fcec514be94cbbb49cfc67b10809b8f739e69; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 8a8145d566d71da3e4fe750df91a239f40e808ec; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 6b1a74ae9038a9ace83e1091f29e77d3a657175c; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 69fa76f0af3414cc189c3b0b807cb59e327ecc00 (cvelist)
- Linux: 2.6.38 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 69fa76f0af3414cc189c3b0b807cb59e327ecc00 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139685. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139685.md
Affected: Linux >= 7924425db04a6107e49312edf53c158590d52aae, < bc33db8baeebfa061cc1c998391629f016fc63fa; >= 7924425db04a6107e49312edf53c158590d52aae, < ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; >= 7924425db04a6107e49312edf53c158590d52aae, < f86fcec514be94cbbb49cfc67b10809b8f739e69; >= 7924425db04a6107e49312e…
Fixed in: Linux 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33, Linux 8a8145d566d71da3e4fe750df91a239f40e808ec, Linux 6b1a74ae9038a9ace83e1091f29e77d3a657175c, Linux 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6, Linux 69fa76f0af3414cc189c3b0b807cb59e327ecc00

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139685 being exploited?

There is no confirmed exploitation: CVE-2026-139685 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139685?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139685?

Linux \>= 7924425db04a6107e49312edf53c158590d52aae, \< bc33db8baeebfa061cc1c998391629f016fc63fa; \>= 7924425db04a6107e49312edf53c158590d52aae, \< ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; \>= 7924425db04a6107e49312edf53c158590d52aae, \< f86fcec514be94cbbb49cfc67b10809b8f739e69; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 8a8145d566d71da3e4fe750df91a239f40e808ec; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 6b1a74ae9038a9ace83e1091f29e77d3a657175c; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; \>= 7924425db04a6107e49312edf53c158590d52aae, \< 69fa76f0af3414cc189c3b0b807cb59e327ecc00; Linux 2.6.38.

### Is there a fix for CVE-2026-139685?

Yes. Fixed in Linux 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33, Linux 8a8145d566d71da3e4fe750df91a239f40e808ec, Linux 6b1a74ae9038a9ace83e1091f29e77d3a657175c, Linux 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6, Linux 69fa76f0af3414cc189c3b0b807cb59e327ecc00. Upgrade Linux to 69fa76f0af3414cc189c3b0b807cb59e327ecc00 or later.

### How do I check if I'm affected by CVE-2026-139685?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139685>

HTML: <https://flawdb.com/CVE-2026-139685> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139685>
