| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-45828: i3c: mipi-i3c-hci: Mask ring interrupts before ring stop request |
| |
| 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 |
| =========================== |
| |
| Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 5.15.174 with commit a6cddf68b3405b272b5a3cad9657be0b02b34bf4 |
| Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.1.120 with commit 9d745a56aea45e47f4755bc12e6429d6314dbb54 |
| Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.6.66 with commit a6dc4b4fda2e147e557050eaae51ff15edeb680b |
| Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.12.5 with commit 19cc5767334bfe980f52421627d0826c0da86721 |
| Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.13 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 |