In the Linux kernel, the following vulnerability has been resolved:
iio: dac: ad3552r-hs: fix out-of-bound write in ad3552r_hs_write_data_source
When simple_write_to_buffer() succeeds, it returns the number of bytes actually copied to the buffer. The code incorrectly uses 'count' as the index for null termination instead of the actual bytes copied. If count exceeds the buffer size, this leads to out-of-bounds write. Add a check for the count and use the return value as the index.
The bug was validated using a demo module that mirrors the original code and was tested under QEMU.
Pattern of the bug: - A fixed 64-byte stack buffer is filled using count. - If count > 64, the code still does buf[count] = '\0', causing an - out-of-bounds write on the stack.
Steps for reproduce: - Opens the device node. - Writes 128 bytes of A to it. - This overflows the 64-byte stack buffer and KASAN reports the OOB.
Found via static analysis. This is similar to the commit da9374819eb3 ("iio: backend: fix out-of-bound write")
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Ubuntu | — | Upgrade linux-image-oracle-6.17Upgrade linux-image-gcp-6.17Upgrade linux-image-6.17.0-1018-azure-fdeUpgrade linux-image-gcpUpgrade linux-image-6.17.0-1021-azureUpgrade linux-image-azure-fde-6.17Upgrade linux-image-6.17.0-1031-nvidiaUpgrade linux-image-6.17.0-1031-nvidia-64kUpgrade linux-image-6.17.0-1019-oracleUpgrade linux-image-oracleUpgrade linux-image-oem-24.04dUpgrade linux-image-oem-6.17Upgrade linux-image-6.17.0-1018-realtimeUpgrade linux-image-oem-24.04Upgrade linux-image-nvidia-64k-6.17Upgrade linux-image-oem-24.04bUpgrade linux-image-oracle-64k-6.17Upgrade linux-image-realtime-hwe-24.04Upgrade linux-image-azure-fdeUpgrade linux-image-6.17.0-1021-gcpUpgrade linux-image-nvidia-64k-hwe-24.04Upgrade linux-image-6.17.0-1021-gcp-64kUpgrade linux-image-gcp-64kUpgrade linux-image-nvidia-hwe-24.04Upgrade linux-image-nvidia-6.17Upgrade linux-image-azureUpgrade linux-image-azure-6.17Upgrade linux-image-oem-24.04cUpgrade linux-image-gcp-64k-6.17Upgrade linux-image-6.17.0-1030-oemUpgrade linux-image-oracle-64kUpgrade linux-image-oem-24.04aUpgrade linux-image-6.17.0-1019-oracle-64kUpgrade linux-image-realtime-6.17 | Jul 21, 2026 | Jul 20, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub