Out-of-Bounds Access Vulnerability in spi: bcm2835

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

UVI-2021-1000891: spi: bcm2835: Fix out-of-bounds access with more than 4 slaves. Affects Kernel versions >= 571e31fa60b3697d5db26140e16d5c45c51c9815, < b5502580cf958b094f3b69dfe4eece90eae01fbc. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The spi: bcm2835 package is a driver for the SPI controller found on Broadcom BCM2835-based systems. It provides support for communication with SPI devices connected to the system. The vulnerability in this package allows for out-of-bounds access when more than 4 slaves are used.

Vulnerability Detail

The vulnerability arises from a flaw in the spi: bcm2835 driver, which leads to out-of-bounds access when the number of connected SPI devices exceeds 4. This can result in memory corruption or unintended data access, potentially leading to system instability or unauthorized access to sensitive information. The vulnerability was introduced in version v5.4 of the Linux Kernel and has been fixed in version v5.4.126.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can limit the number of connected SPI devices to 4 or fewer to avoid triggering the out-of-bounds access. This can be achieved by disconnecting or disabling unnecessary SPI devices or by reconfiguring the system to use fewer slaves.

Conclusion

The out-of-bounds access vulnerability in spi: bcm2835 can lead to memory corruption, system instability, or unauthorized access to sensitive information. It is crucial to update the Linux Kernel to version v5.4.126 or later to mitigate this vulnerability. If you need further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to memory corruption, system instability, or unauthorized access to sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will provide real-time alerts for open-source vulnerabilities.

At the time of this report, no known exploits for this vulnerability have been reported. However, it is important to apply the fix as soon as possible to mitigate any potential risks.

The recommended approach is to update the Linux Kernel to the fixed version. However, as a temporary workaround, you can limit the number of connected SPI devices to 4 or fewer.

You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/UVI-2021-1000891.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback