CVE-2026-139685

Source
https://cve.org/CVERecord?id=CVE-2026-139685
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139685.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139685
Downstream
Published
2026-11-30T13:37:02Z
Modified
2026-11-30T15:02:30Z
Summary
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Details

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

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139685.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7924425db04a6107e49312edf53c158590d52aae
Fixed
bc33db8baeebfa061cc1c998391629f016fc63fa
Fixed
ab1a3a906040d21ecc8552e20c21da53ebdf0d9a
Fixed
f86fcec514be94cbbb49cfc67b10809b8f739e69
Fixed
0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33
Fixed
8a8145d566d71da3e4fe750df91a239f40e808ec
Fixed
6b1a74ae9038a9ace83e1091f29e77d3a657175c
Fixed
96f269ae4b18dd0819d70fab7ddaabf6e28c7de6
Fixed
69fa76f0af3414cc189c3b0b807cb59e327ecc00

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139685.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.38
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139685.json"