# CVE-2022-49569: spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T02:23:13.209Z
- Modified: 2026-06-17T05:18:28.690Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1513ceee70f2bd523e025efe0c715328e1a43ffd before 76668d2a2f367d25ff448e6d7087406af7d7bb2b; from 1513ceee70f2bd523e025efe0c715328e1a43ffd before 684896e675edd8b669fd3e9f547c5038222d85bc; from 1513ceee70f2bd523e025efe0c715328e1a43ffd before 58466e05390043d2805685c70f55f3f59711bdf2; from 1513ceee70f2bd523e025efe0c715328e1a43ffd before 49ffa473218012e765682343de2052eb4c1f06a7; from 1513ceee70f2bd523e025efe0c715328e1a43ffd before 4ceaa684459d414992acbefb4e4c31f2dfc50641; 5.4 (not affected: before 5.4; from 5.4.208 up to 5.4.*; from 5.10.134 up to 5.10.*; from 5.15.58 up to 5.15.*; from 5.18.15 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.4 before 5.4.208; from 5.5 before 5.10.134; from 5.11 before 5.15.58; from 5.16 before 5.18.15; 5.19

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/76668d2a2f367d25ff448e6d7087406af7d7bb2b> (patch)
- <https://git.kernel.org/stable/c/684896e675edd8b669fd3e9f547c5038222d85bc> (patch)
- <https://git.kernel.org/stable/c/58466e05390043d2805685c70f55f3f59711bdf2> (patch)
- <https://git.kernel.org/stable/c/49ffa473218012e765682343de2052eb4c1f06a7> (patch)
- <https://git.kernel.org/stable/c/4ceaa684459d414992acbefb4e4c31f2dfc50641> (patch)

## Sources

- CVE List: [CVE-2022-49569](https://www.cve.org/CVERecord?id=CVE-2022-49569), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49569](https://nvd.nist.gov/vuln/detail/CVE-2022-49569), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49569 · Whole record: https://cve.day/CVE-2022-49569.json · Rebuilt by cve.day 2026-11-25T22:58:20.737Z
