CVE-2022-49569 spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers
A NULL pointer dereference in the Linux kernel's BCM2835 SPI driver can cause a system crash during timed-out IRQ transfers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49569?
CVE-2022-49569 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2022-49569?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49569?
Apply the vendor's patch.
Is CVE-2022-49569 being exploited?
There is no known exploitation of CVE-2022-49569 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49569, GHSA-x4wx-6qj6-2hp3, UBUNTU-CVE-2022-49569.