System crash via oversized GPIO chip-select configuration
Published May 21, 2024 · Updated Aug 5, 2026
Out-of-bounds access in the Linux bcm2835 SPI driver allows local users to crash systems configured with more than three GPIO chip selects. Device-tree GPIO entries raise num_chipselect beyond three, after which the driver indexes the statically sized prepare_cs array with an expanded chip-select number. Reachability requires bcm2835 SPI hardware and a device tree declaring excess GPIO chip selects; the resulting kernel-memory corruption interrupts service.
Summary
What happened
Out-of-bounds access in the Linux bcm2835 SPI driver allows local users to crash systems configured with more than three GPIO chip selects. Device-tree GPIO entries raise num_chipselect beyond three, after which the driver indexes the statically sized prepare_cs array with an expanded chip-select number. Reachability requires bcm2835 SPI hardware and a device tree declaring excess GPIO chip selects; the resulting kernel-memory corruption interrupts service.
The record
- CVE
- CVE-2021-47282
- Published
- May 21, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.4
- Affected versionversion=571e31fa60b3697d5db26140e16d5c45c51c9815 <01415ff85a24308059e06ca3e97fd7bf75648690
- Affected versionversion=571e31fa60b3697d5db26140e16d5c45c51c9815 <13817d466eb8713a1ffd254f537402f091d48444
- Affected versionversion=571e31fa60b3697d5db26140e16d5c45c51c9815 <82a8ffba54d31e97582051cb56ba1f988018681e
- Affected versionversion=571e31fa60b3697d5db26140e16d5c45c51c9815 <b5502580cf958b094f3b69dfe4eece90eae01fbc
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo