Bug 2586709 (CVE-2026-139685) - CVE-2026-139685 kernel: kernel: Denial of Service via unsafe DMA in AD7816 driver
Summary: CVE-2026-139685 kernel: kernel: Denial of Service via unsafe DMA in AD7816 dr...
Keywords:
Status: NEW
Alias: CVE-2026-139685
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 14:35 UTC by OSIDB Bzimport
Modified: 2026-12-01 04:09 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 14:35:17 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.