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

Summary

CVECVE-2026-139685
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:56 UTC
Updated2026-11-30 14:19:56 UTC
DescriptionIn 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).

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae bc33db8baeebfa061cc1c998391629f016fc63fa git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae ab1a3a906040d21ecc8552e20c21da53ebdf0d9a git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae f86fcec514be94cbbb49cfc67b10809b8f739e69 git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae 0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33 git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae 8a8145d566d71da3e4fe750df91a239f40e808ec git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae 6b1a74ae9038a9ace83e1091f29e77d3a657175c git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae 96f269ae4b18dd0819d70fab7ddaabf6e28c7de6 git Not specified
CNA Linux Linux affected 7924425db04a6107e49312edf53c158590d52aae 69fa76f0af3414cc189c3b0b807cb59e327ecc00 git Not specified
CNA Linux Linux affected 2.6.38 Not specified
CNA Linux Linux unaffected 2.6.38 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/bc33db8baeebfa061cc1c998391629f016fc63fa 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ab1a3a906040d21ecc8552e20c21da53ebdf0d9a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/96f269ae4b18dd0819d70fab7ddaabf6e28c7de6 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/69fa76f0af3414cc189c3b0b807cb59e327ecc00 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8a8145d566d71da3e4fe750df91a239f40e808ec 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6b1a74ae9038a9ace83e1091f29e77d3a657175c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f86fcec514be94cbbb49cfc67b10809b8f739e69 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report