| 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-56689: PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio' |
| |
| If platform_get_resource_byname() fails and returns NULL because DT lacks |
| an 'mmio' property for the MHI endpoint, dereferencing res->start will |
| cause a NULL pointer access. Add a check to prevent it. |
| |
| [kwilczynski: error message update per the review feedback] |
| [bhelgaas: commit log] |
| |
| The Linux kernel CVE team has assigned CVE-2024-56689 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.6.64 with commit 242ee2b0ad9b23f47084904fce3f9f228068a1f9 |
| Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.11.11 with commit c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef |
| Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.12.2 with commit 0e6d92e3b973de78eb7015154cf1197af9fac5c9 |
| Issue introduced in 6.5 with commit 1bf5f25324f7f6a52c3eb566ec5f78f6a901db96 and fixed in 6.13 with commit 5089b3d874e9933d9842e90410d3af1520494757 |
| |
| 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-56689 |
| 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/pci/endpoint/functions/pci-epf-mhi.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/242ee2b0ad9b23f47084904fce3f9f228068a1f9 |
| https://git.kernel.org/stable/c/c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef |
| https://git.kernel.org/stable/c/0e6d92e3b973de78eb7015154cf1197af9fac5c9 |
| https://git.kernel.org/stable/c/5089b3d874e9933d9842e90410d3af1520494757 |