In the Linux kernel, the following vulnerability has been resolved: iio: accel: bmc150: clamp the device-reported FIFO frame count… (CVE-2026-64504)
A vulnerability in the Linux kernel's bmc150 accelerometer driver allows a stack out-of-bounds write due to improper clamping of the FIFO frame count. The driver copies device-reported FIFO frames into a fixed-size buffer without adequately limiting the frame count, enabling up to 570 bytes of overflow. This can corrupt the stack canary, saved registers, and return address. Legitimate devices are unaffected as they report fewer frames, and the issue is resolved by clamping the frame count to the buffer size.
AI Analysis
Technical Summary
The Linux kernel's bmc150 accelerometer driver (__bmc150_accel_fifo_flush function) copies the number of samples reported by the device's FIFO into a fixed-size on-stack buffer sized for 32 samples. The frame count is read from the FIFO_STATUS register and masked to 7 bits, allowing values up to 127. Without proper clamping, this count can exceed the buffer size, leading to a stack out-of-bounds write of up to 570 bytes when transferring data. This overflow can overwrite critical stack data such as the stack canary, saved registers, and return address. The vulnerability arises from insufficient validation of the frame count before the data transfer. The fix clamps the frame count to the buffer size (32 samples), preventing overflow. Legitimate devices do not report more than 32 frames, so normal operation is unaffected.
Potential Impact
An attacker controlling a malfunctioning, malicious, or counterfeit accelerometer device, or able to tamper with the I2C/SPI bus, can cause a stack buffer overflow in the kernel driver. This overflow can overwrite critical stack data, potentially leading to kernel memory corruption and arbitrary code execution or system compromise. However, no known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available that clamps the device-reported FIFO frame count to the buffer size before data transfer, preventing the stack overflow. Users should apply the official Linux kernel update that includes this fix. Since this is a kernel vulnerability, updating to a patched kernel version is the recommended remediation. Patch status is not explicitly confirmed in the provided data; users should consult the official Linux kernel advisories or vendor patches for the exact fixed versions and apply them accordingly.
In the Linux kernel, the following vulnerability has been resolved: iio: accel: bmc150: clamp the device-reported FIFO frame count… (CVE-2026-64504)
Description
A vulnerability in the Linux kernel's bmc150 accelerometer driver allows a stack out-of-bounds write due to improper clamping of the FIFO frame count. The driver copies device-reported FIFO frames into a fixed-size buffer without adequately limiting the frame count, enabling up to 570 bytes of overflow. This can corrupt the stack canary, saved registers, and return address. Legitimate devices are unaffected as they report fewer frames, and the issue is resolved by clamping the frame count to the buffer size.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's bmc150 accelerometer driver (__bmc150_accel_fifo_flush function) copies the number of samples reported by the device's FIFO into a fixed-size on-stack buffer sized for 32 samples. The frame count is read from the FIFO_STATUS register and masked to 7 bits, allowing values up to 127. Without proper clamping, this count can exceed the buffer size, leading to a stack out-of-bounds write of up to 570 bytes when transferring data. This overflow can overwrite critical stack data such as the stack canary, saved registers, and return address. The vulnerability arises from insufficient validation of the frame count before the data transfer. The fix clamps the frame count to the buffer size (32 samples), preventing overflow. Legitimate devices do not report more than 32 frames, so normal operation is unaffected.
Potential Impact
An attacker controlling a malfunctioning, malicious, or counterfeit accelerometer device, or able to tamper with the I2C/SPI bus, can cause a stack buffer overflow in the kernel driver. This overflow can overwrite critical stack data, potentially leading to kernel memory corruption and arbitrary code execution or system compromise. However, no known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available that clamps the device-reported FIFO frame count to the buffer size before data transfer, preventing the stack overflow. Users should apply the official Linux kernel update that includes this fix. Since this is a kernel vulnerability, updating to a patched kernel version is the recommended remediation. Patch status is not explicitly confirmed in the provided data; users should consult the official Linux kernel advisories or vendor patches for the exact fixed versions and apply them accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-4j8x-6qx9-p4gc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64504"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6542069c2644c7f80820bc
Added to database: 07/25/2026, 23:08:54 UTC
Last enriched: 07/25/2026, 23:15:22 UTC
Last updated: 07/26/2026, 03:56:01 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.