CVE-2022-49569

spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:23 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers In case a IRQ based transfer times out the bcm2835_spi_handle_err() function is called. Since commit 1513ceee70f2 ("spi: bcm2835: Drop dma_pending flag") the TX and RX DMA transfers are unconditionally canceled, leading to NULL pointer derefs if ctlr->dma_tx or ctlr->dma_rx are not set. Fix the NULL pointer deref by checking that ctlr->dma_tx and ctlr->dma_rx are valid pointers before accessing them.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.585.16 ≤ v < 5.18.155.4 ≤ v < 5.10.1345.4 ≤ v < 5.15.585.4 ≤ v < 5.18.155.4 ≤ v < 5.195.4 ≤ v < 5.4.2085.5 ≤ v < 5.10.1341513ceee70f2bd523e025efe0c715328e1a43ffd5.19 rc15.19 rc25.19 rc35.19 rc45.19 rc55.19 rc65.19 rc7
Vendor states this is fixed in 49ffa473218012e765682343de2052eb4c1f06a7 (fixed)
Vendor states this is fixed in 4ceaa684459d414992acbefb4e4c31f2dfc50641 (fixed)
Vendor states this is fixed in 58466e05390043d2805685c70f55f3f59711bdf2 (fixed)
Vendor states this is fixed in 684896e675edd8b669fd3e9f547c5038222d85bc (fixed)
Vendor states this is fixed in 76668d2a2f367d25ff448e6d7087406af7d7bb2b (fixed)
Vendor states this is fixed in 5.10.134 (unaffected)
Vendor states this is fixed in 5.15.58 (unaffected)
Vendor states this is fixed in 5.18.15 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4 (unaffected)
Vendor states this is fixed in 5.4.208 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49ffa473218012e765682343de2052eb4c1f06a7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4ceaa684459d414992acbefb4e4c31f2dfc50641
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/58466e05390043d2805685c70f55f3f59711bdf2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/684896e675edd8b669fd3e9f547c5038222d85bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/76668d2a2f367d25ff448e6d7087406af7d7bb2b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card