Review reviewHigh

CVE-2021-47282

Linux Linux, linux kernel

In the Linux kernel, the following vulnerability has been resolved: spi: bcm2835: Fix out-of-bounds access with more than 4 slaves Commit 571e31fa60b3 ("spi: bcm2835: Cache CS register value for ->prepare_message()") limited the number of slaves to 3 at compile-time. The limitation was necessitated by a statically-sized array prepare_cs[] in the driver private data which contains a per-slave register value. The commit sought to enforce the limitation at run-time by setting the controller's num_chipselect to 3: Slaves with a higher chipselect are rejected by spi_add_device(). However the com...

CVSS
7.8
EPSS
0.23%
13.9% percentile
CISA KEV
Not listed
Published
2024.05.22
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.23%
Technical severityCVSS 7.8

Vulnerability overview

In the Linux kernel, the following vulnerability has been resolved: spi: bcm2835: Fix out-of-bounds access with more than 4 slaves Commit 571e31fa60b3 ("spi: bcm2835: Cache CS register value for ->prepare_message()") limited the number of slaves to 3 at compile-time. The limitation was necessitated by a statically-sized array prepare_cs[] in the driver private data which contains a per-slave register value. The commit sought to enforce the limitation at run-time by setting the controller's num_chipselect to 3: Slaves with a higher chipselect are rejected by spi_add_device(). However the com...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 571e31fa60b3697d5db26140e16d5c45c51c9815 < b5502580cf958b094f3b69dfe4eece90eae01fbc, >= 571e31fa60b3697d5db26140e16d5c45c51c9815 < 82a8ffba54d31e97582051cb56ba1f988018681e, >= 571e31fa60b3697d5db26140e16d5c45c51c9815 < 01415ff85a24308059e06ca3e97fd7bf75648690, >= 571e31fa60b3697d5db26140e16d5c45c51c9815 < 13817d466eb8713a1ffd254f537402f091d48444, >= 5.4, >= 5.4 < 5.4.126, >= 5.5 < 5.10.44, >= 5.11 < 5.12.11, 5.13
Fixed versions
5.4.126, 5.10.44, 5.12.11

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-787