Skip to content
FlawDB
Sign in

CVE-2026-139685

UNSCORED

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

AI summary AI generated

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.

Mitigation

  • Upgrade Linux to 69fa76f0af3414cc189c3b0b807cb59e327ecc00 or later.

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

Vulnerability facts

Affected
Linux >= 7924425db04a6107e49312edf53c158590d52aae, < bc33db8baeebfa061cc1c998391629f016fc63fa; >= 7924425db04a6107e49312edf53c158590d52aae, < ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; >= 7924425db04a6107e49312edf53c158590d52aae, < f86fcec514be94cbbb49cfc67b10809b8f739e69; >= 7924425db04a6107e49312edf53c158590d52aae, < 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; >= 7924425db04a6107e49312edf53c158590d52aae, < 8a8145d566d71da3e4fe750df91a239f40e808ec; >= 7924425db04a6107e49312edf53c158590d52aae, < 6b1a74ae9038a9ace83e1091f29e77d3a657175c; >= 7924425db04a6107e49312edf53c158590d52aae, < 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; >= 7924425db04a6107e49312edf53c158590d52aae, < 69fa76f0af3414cc189c3b0b807cb59e327ecc00; Linux 2.6.38
Fixed in
Linux 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33, Linux 8a8145d566d71da3e4fe750df91a239f40e808ec, Linux 6b1a74ae9038a9ace83e1091f29e77d3a657175c, Linux 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6, Linux 69fa76f0af3414cc189c3b0b807cb59e327ecc00
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 7924425db04a6107e49312edf53c158590d52aae, < bc33db8baeebfa061cc1c998391629f016fc63fa; >= 7924425db04a6107e49312edf53c158590d52aae, < ab1a3a906040d21ecc8552e20c21da53ebdf0d9a; >= 7924425db04a6107e49312edf53c158590d52aae, < f86fcec514be94cbbb49cfc67b10809b8f739e69; >= 7924425db04a6107e49312edf53c158590d52aae, < 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33; >= 7924425db04a6107e49312edf53c158590d52aae, < 8a8145d566d71da3e4fe750df91a239f40e808ec; >= 7924425db04a6107e49312edf53c158590d52aae, < 6b1a74ae9038a9ace83e1091f29e77d3a657175c; >= 7924425db04a6107e49312edf53c158590d52aae, < 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6; >= 7924425db04a6107e49312edf53c158590d52aae, < 69fa76f0af3414cc189c3b0b807cb59e327ecc00—cvelist
Linux2.6.38—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors