CVE-2022-49569

published 26 Feb 2025 · updated 11 May 2026

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

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 49ffa473218012e765682343de2052eb4c1f06a7, Kernel 4ceaa684459d414992acbefb4e4c31f2dfc50641, Kernel 58466e05390043d2805685c70f55f3f59711bdf2 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.4, >=1513ceee70f2bd523e025efe0c715328e1a43ffd <49ffa473218012e765682343de2052eb4c1f06a7, >=1513ceee70f2bd523e025efe0c715328e1a43ffd <4ceaa684459d414992acbefb4e4c31f2dfc50641, >=1513ceee70f2bd523e025efe0c715328e1a43ffd <58466e05390043d2805685c70f55f3f59711bdf2, >=1513ceee70f2bd523e025efe0c715328e1a43ffd <684896e675edd8b669fd3e9f547c5038222d85bc, >=1513ceee70f2bd523e025efe0c715328e1a43ffd <76668d2a2f367d25ff448e6d7087406af7d7bb2b49ffa473218012e765682343de2052eb4c1f06a7, 4ceaa684459d414992acbefb4e4c31f2dfc50641, 58466e05390043d2805685c70f55f3f59711bdf2, 684896e675edd8b669fd3e9f547c5038222d85bc, 76668d2a2f367d25ff448e6d7087406af7d7bb2b

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49569 severity on Zeptric[![CVE-2022-49569](https://zeptric.io/badge/cve/CVE-2022-49569.svg)](https://zeptric.io/cve/CVE-2022-49569)