Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D566719007D for ; Sat, 11 Jan 2025 12:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598360; cv=none; b=jmIX7iejSwxFsssnUmSh2K5qvUxaY6TlGquxtVJvJkjK1ZMQs7pkxs8GeeKy91YA60mzG8E+g/RHosow/2DclZ8OLAaZmsEFQqWtiemsvmHkaj5V/8FTRm98IL3s+jpFz8/JjOhp1xZQ94emv/u0deBtTutJ3SQnCwsYiCNcuCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736598360; c=relaxed/simple; bh=im4fnMBXSgI2hiitvpTdCestsn07IwpPL6YDftClqYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o3PrhmJWPoBwgI55RDzYuIUcsBW/iydRNzK3ZdIaP9n2Qf0C+3g4Qqo7BuvaKplS8PqCywK2dfnuEG3w/u7rcBqpyxAHOlOKcCJdbm49PHef1bU/C7evFkiwpBLK171ACj1vdaDZfodat+tmCnpYrn8siBTqPVSoDszCBJOneow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WU1BpKr4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WU1BpKr4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9EC8C4CEDF; Sat, 11 Jan 2025 12:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736598360; bh=im4fnMBXSgI2hiitvpTdCestsn07IwpPL6YDftClqYo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WU1BpKr4ov97I3xD4aeslTiXyFtod44ufSJ5n8rVRVqFZMxiWni7LpZxix92kLPi+ /jYgYtUnkSBhvIdV6shWim3QwhYAeyH6Cwo4GAMzk0G0tIplMPNwK0HnYQd7AbOQTq 0msZJ5vC2G7HcVBb60OTPP6Cmrjz0xOuUGiMXEHw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45828: i3c: mipi-i3c-hci: Mask ring interrupts before ring stop request Date: Sat, 11 Jan 2025 13:25:19 +0100 Message-ID: <2025011119-CVE-2024-45828-8cbd@gregkh> X-Mailer: git-send-email 2.48.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2493; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=im4fnMBXSgI2hiitvpTdCestsn07IwpPL6YDftClqYo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNyfqeEWEPA+K7z25MPOuZosDfNI1DrnDWlHcFNqste Z9LmJ/riGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn8uMWwYNK2dLc22epHP/s0 dY0NL320rLwxkWFBZ/dd9hlVrzpOZm/ac3D6A43geKlMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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