[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024122833-CVE-2024-56682-3219@gregkh>
Date: Sat, 28 Dec 2024 10:45:34 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-56682: irqchip/riscv-aplic: Prevent crash when MSI domain is missing
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
irqchip/riscv-aplic: Prevent crash when MSI domain is missing
If the APLIC driver is probed before the IMSIC driver, the parent MSI
domain will be missing, which causes a NULL pointer dereference in
msi_create_device_irq_domain().
Avoid this by deferring probe until the parent MSI domain is available. Use
dev_err_probe() to avoid printing an error message when returning
-EPROBE_DEFER.
The Linux kernel CVE team has assigned CVE-2024-56682 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit ca8df97fe6798afbe395fc4a8e23bac0c7fbd248 and fixed in 6.12.2 with commit 285a07810ab3bcedc2bd380ebacbf6b4942a889a
Issue introduced in 6.10 with commit ca8df97fe6798afbe395fc4a8e23bac0c7fbd248 and fixed in 6.13-rc1 with commit 1f181d1cda56c2fbe379c5ace1aa1fac6306669e
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-56682
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/irqchip/irq-riscv-aplic-main.c
drivers/irqchip/irq-riscv-aplic-msi.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/285a07810ab3bcedc2bd380ebacbf6b4942a889a
https://git.kernel.org/stable/c/1f181d1cda56c2fbe379c5ace1aa1fac6306669e
Powered by blists - more mailing lists