Skip to contentSkip to conversation

CVE-2024-56785: MIPS: Loongson64: DTS: Really fix PCIe port nodes for ls7a

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

lore
Share & tools
lore
#0 lore raw

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

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

MIPS: Loongson64: DTS: Really fix PCIe port nodes for ls7a

Fix the dtc warnings:

    arch/mips/boot/dts/loongson/ls7a-pch.dtsi:68.16-416.5: Warning (interrupt_provider): /bus@10000000/pci@1a000000: '#interrupt-cells' found, but node is not an interrupt provider
    arch/mips/boot/dts/loongson/ls7a-pch.dtsi:68.16-416.5: Warning (interrupt_provider): /bus@10000000/pci@1a000000: '#interrupt-cells' found, but node is not an interrupt provider
    arch/mips/boot/dts/loongson/loongson64g_4core_ls7a.dtb: Warning (interrupt_map): Failed prerequisite 'interrupt_provider'

And a runtime warning introduced in commit 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells handling"):

    WARNING: CPU: 0 PID: 1 at drivers/of/base.c:106 of_bus_n_addr_cells+0x9c/0xe0
    Missing '#address-cells' in /bus@10000000/pci@1a000000/pci_bridge@9,0

The fix is similar to commit d89a415ff8d5 ("MIPS: Loongson64: DTS: Fix PCIe port nodes for ls7a"), which has fixed the issue for ls2k (despite its subject mentions ls7a).

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

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

	Fixed in 5.10.231 with commit 5a2eaa3ad2b803c7ea442c6db7379466ee73c024
	Fixed in 5.15.174 with commit a7fd78075031871bc68fc56fdaa6e7a3934064b1
	Fixed in 6.1.120 with commit c8ee41fc3522c6659e324d90bc2ccd3b6310d7fc
	Fixed in 6.6.66 with commit 8ef9ea1503d0a129cc6f5cf48fb63633efa5d766
	Fixed in 6.12.5 with commit 01575f2ff8ba578a3436f230668bd056dc2eb823
	Fixed in 6.13-rc1 with commit 4fbd66d8254cedfd1218393f39d83b6c07a01917

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-56785

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:
arch/mips/boot/dts/loongson/ls7a-pch.dtsi

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/5a2eaa3ad2b803c7ea442c6db7379466ee73c024
	https://git.kernel.org/stable/c/a7fd78075031871bc68fc56fdaa6e7a3934064b1
	https://git.kernel.org/stable/c/c8ee41fc3522c6659e324d90bc2ccd3b6310d7fc
	https://git.kernel.org/stable/c/8ef9ea1503d0a129cc6f5cf48fb63633efa5d766
	https://git.kernel.org/stable/c/01575f2ff8ba578a3436f230668bd056dc2eb823
	https://git.kernel.org/stable/c/4fbd66d8254cedfd1218393f39d83b6c07a01917