Skip to contentSkip to conversation

CVE-2024-45828: i3c: mipi-i3c-hci: Mask ring interrupts before ring stop request

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 11, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

i3c: mipi-i3c-hci: Mask ring interrupts before ring stop request

Bus cleanup path in DMA mode may trigger a RING_OP_STAT interrupt when the ring is being stopped. Depending on timing between ring stop request completion, interrupt handler removal and code execution this may lead to a NULL pointer dereference in hci_dma_irq_handler() if it gets to run after the io_data pointer is set to NULL in hci_dma_cleanup().

Prevent this my masking the ring interrupts before ring stop request.

The Linux kernel CVE team has assigned CVE-2024-45828 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.15.174 with commit a6cddf68b3405b272b5a3cad9657be0b02b34bf4
	Fixed in 6.1.120 with commit 9d745a56aea45e47f4755bc12e6429d6314dbb54
	Fixed in 6.6.66 with commit a6dc4b4fda2e147e557050eaae51ff15edeb680b
	Fixed in 6.12.5 with commit 19cc5767334bfe980f52421627d0826c0da86721
	Fixed in 6.13-rc1 with commit 6ca2738174e4ee44edb2ab2d86ce74f015a0cc32

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2024-45828

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/i3c/master/mipi-i3c-hci/dma.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/a6cddf68b3405b272b5a3cad9657be0b02b34bf4
	https://git.kernel.org/stable/c/9d745a56aea45e47f4755bc12e6429d6314dbb54
	https://git.kernel.org/stable/c/a6dc4b4fda2e147e557050eaae51ff15edeb680b
	https://git.kernel.org/stable/c/19cc5767334bfe980f52421627d0826c0da86721
	https://git.kernel.org/stable/c/6ca2738174e4ee44edb2ab2d86ce74f015a0cc32