{"id":"CVE-2026-139685","aliases":["CVE-2026-139685"],"related":[],"kind":"vulnerability","state":"published","title":"staging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers\n\nThe SPI operations in this driver are not DMA safe:\n1. spi_read() uses a stack-allocated buffer.\n2. spi_write() in ad7816_spi_read() uses a struct member that shares a\n   cacheline with other variables.\n3. spi_write() in ad7816_spi_write() passes a stack parameter by\n   reference.\n\nFix these violations by replacing all spi_read() and spi_write() calls\nwith spi_write_then_read(). This safely handles DMA by internally\nallocating a bounce buffer for the transfers, avoiding cacheline\nsharing issues without needing dedicated aligned buffers.\nThis implicitly corrects the size argument in read to sizeof(buf).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: iio: adc: ad7816: Fix DMA safety issues in SPI transfers\n\nThe SPI operations in this driver are not DMA safe:\n1. spi_read() uses a stack-allocated buffer.\n2. spi_write() in ad7816_spi_read() uses a struct member that shares a\n   cacheline with other variables.\n3. spi_write() in ad7816_spi_write() passes a stack parameter by\n   reference.\n\nFix these violations by replacing all spi_read() and spi_write() calls\nwith spi_write_then_read(). This safely handles DMA by internally\nallocating a bounce buffer for the transfers, avoiding cacheline\nsharing issues without needing dedicated aligned buffers.\nThis implicitly corrects the size argument in read to sizeof(buf).","source":"cvelist"}],"published":"2026-11-30T13:37:02.010Z","modified":"2026-11-30T14:19:56.750Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"bc33db8baeebfa061cc1c998391629f016fc63fa","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"ab1a3a906040d21ecc8552e20c21da53ebdf0d9a","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"f86fcec514be94cbbb49cfc67b10809b8f739e69","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"8a8145d566d71da3e4fe750df91a239f40e808ec","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"6b1a74ae9038a9ace83e1091f29e77d3a657175c","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"96f269ae4b18dd0819d70fab7ddaabf6e28c7de6","status":"affected"},{"type":"git","introduced":"7924425db04a6107e49312edf53c158590d52aae","fixed":"69fa76f0af3414cc189c3b0b807cb59e327ecc00","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.38","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.38","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bc33db8baeebfa061cc1c998391629f016fc63fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab1a3a906040d21ecc8552e20c21da53ebdf0d9a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f86fcec514be94cbbb49cfc67b10809b8f739e69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d7a0fed2e93e45194c3da5e2d5b8edb5ac87f33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a8145d566d71da3e4fe750df91a239f40e808ec","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b1a74ae9038a9ace83e1091f29e77d3a657175c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96f269ae4b18dd0819d70fab7ddaabf6e28c7de6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69fa76f0af3414cc189c3b0b807cb59e327ecc00","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139685","url":"https://www.cve.org/CVERecord?id=CVE-2026-139685","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:02.010Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139685","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139685","licence":"Public domain","modified":"2026-11-30T14:19:56.750Z"}],"updatedAt":"2026-11-30T14:33:30.959Z","epss":{"score":0.00176,"percentile":0.07493,"date":"2026-12-01T12:00:22.000Z"}}