CVE-2021-47282
Linux Debian vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability has been identified in the bcm2835 SPI driver where an out-of-bounds access could occur when using more than 4 slaves. The issue was introduced by commit 571e31fa60b3 which limited the number of slaves to 3 at compile-time through a statically-sized array prepare_cs[] in the driver private data (Kernel Commit).

Technical details

The vulnerability stems from the driver's attempt to enforce a limitation on the number of chipselects by setting the controller's num_chipselect to 3. However, when GPIO chipselects are specified in the device tree for more than 3 slaves, num_chipselect is silently raised by of_spi_get_gpio_numbers(), resulting in out-of-bounds accesses to the statically-sized array prepare_cs[] (Kernel Commit).

Impact

The vulnerability could lead to out-of-bounds memory access when using more than 4 SPI slaves with the bcm2835 SPI driver, potentially causing system instability or crashes (Kernel Commit).

Mitigation and workarounds

The issue has been fixed by raising the number of allowed slaves to 24 as a temporary solution, enforcing the limitation on slave setup, and reverting num_chipselect to 3 (which is the number of native chipselects supported by the controller). Users are advised to update to patched kernel versions that include this fix (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-42170HIGH7.8
  • Linux Debian logoLinux Debian
  • gimp-devel-tools
NoYesAug 08, 2026
CVE-2026-15534NONEN/A
  • Linux Debian logoLinux Debian
  • perl
NoNoAug 09, 2026
CVE-2026-17510NONEN/A
  • Linux Debian logoLinux Debian
  • libcrypt-openssl-pkcs12-perl
NoNoAug 09, 2026
CVE-2026-68082NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 08, 2026
CVE-2026-68081NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management