CVE-2026-139685
publishedstaging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7924425db04a6107e49312edf53c158590d52aae to < bc33db8baeebfa061cc1c998391629f016fc63fa · 7924425db04a6107e49312edf53c158590d52aae to < ab1a3a906040d21ecc8552e20c21da53ebdf0d9a · 7924425db04a6107e49312edf53c158590d52aae to < f86fcec514be94cbbb49cfc67b10809b8f739e69 · 7924425db04a6107e49312edf53c158590d52aae to < 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33 · 7924425db04a6107e49312edf53c158590d52aae to < 8a8145d566d71da3e4fe750df91a239f40e808ec · 7924425db04a6107e49312edf53c158590d52aae to < 6b1a74ae9038a9ace83e1091f29e77d3a657175c · 7924425db04a6107e49312edf53c158590d52aae to < 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6 · 7924425db04a6107e49312edf53c158590d52aae to < 69fa76f0af3414cc189c3b0b807cb59e327ecc00 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.38 (affected) · 0 to < 2.6.38 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7924425db04a6107e49312edf53c158590d52aae to < bc33db8baeebfa061cc1c998391629f016fc63fa (affected · git)7924425db04a6107e49312edf53c158590d52aae to < ab1a3a906040d21ecc8552e20c21da53ebdf0d9a (affected · git)7924425db04a6107e49312edf53c158590d52aae to < f86fcec514be94cbbb49cfc67b10809b8f739e69 (affected · git)7924425db04a6107e49312edf53c158590d52aae to < 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33 (affected · git)7924425db04a6107e49312edf53c158590d52aae to < 8a8145d566d71da3e4fe750df91a239f40e808ec (affected · git)7924425db04a6107e49312edf53c158590d52aae to < 6b1a74ae9038a9ace83e1091f29e77d3a657175c (affected · git)7924425db04a6107e49312edf53c158590d52aae to < 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6 (affected · git)7924425db04a6107e49312edf53c158590d52aae to < 69fa76f0af3414cc189c3b0b807cb59e327ecc00 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.38 (affected)0 to < 2.6.38 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33
- https://git.kernel.org/stable/c/69fa76f0af3414cc189c3b0b807cb59e327ecc00
- https://git.kernel.org/stable/c/6b1a74ae9038a9ace83e1091f29e77d3a657175c
- https://git.kernel.org/stable/c/8a8145d566d71da3e4fe750df91a239f40e808ec
- https://git.kernel.org/stable/c/96f269ae4b18dd0819d70fab7ddaabf6e28c7de6
- https://git.kernel.org/stable/c/ab1a3a906040d21ecc8552e20c21da53ebdf0d9a
- https://git.kernel.org/stable/c/bc33db8baeebfa061cc1c998391629f016fc63fa
- https://git.kernel.org/stable/c/f86fcec514be94cbbb49cfc67b10809b8f739e69
Provider assertions
1Linux · cna
staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1245c0260d1b7eba3801432280fa06c7252c9848ccb2751212e5dd1f776f2885
- Ingested
- 30 Nov 2026, 13:43:49 UTC
- Source record
- Official CVE record