Bug 2347799 (CVE-2022-49569) - CVE-2022-49569 kernel: spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers
Summary: CVE-2022-49569 kernel: spi: bcm2835: bcm2835_spi_handle_err(): fix NULL point...
Keywords:
Status: NEW
Alias: CVE-2022-49569
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:07 UTC by OSIDB Bzimport
Modified: 2025-03-16 13:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:07:10 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:05:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022606-CVE-2022-49569-3c5b@gregkh/T

Comment 4 Avinash Hanwate 2025-02-28 02:17:27 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022606-CVE-2022-49569-3c5b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.