Skip to contentSkip to conversation

CVE-2024-56725: octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dcbnl.c

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 29, 2024

lore
Share & tools
lore
#0 lore raw

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

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

octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dcbnl.c

Add error pointer check after calling otx2_mbox_get_rsp().

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

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

	Issue introduced in 5.18 with commit 8e67558177f8f55dcffa47273c2af0a6f2ab9418 and fixed in 6.1.120 with commit b94052830e3cd3be7141789a5ce6e62cf9f620a4
	Issue introduced in 5.18 with commit 8e67558177f8f55dcffa47273c2af0a6f2ab9418 and fixed in 6.6.64 with commit b99db02209ca4c2e2f53b82049ea3cbc82b54895
	Issue introduced in 5.18 with commit 8e67558177f8f55dcffa47273c2af0a6f2ab9418 and fixed in 6.11.11 with commit 54e8b501b3ea9371e4a9aa639c75b681fa5680f0
	Issue introduced in 5.18 with commit 8e67558177f8f55dcffa47273c2af0a6f2ab9418 and fixed in 6.12.2 with commit 6ee6cf42dc5230425cfce1ffefa5a8d8a99e6fce
	Issue introduced in 5.18 with commit 8e67558177f8f55dcffa47273c2af0a6f2ab9418 and fixed in 6.13-rc1 with commit 69297b0d3369488af259e3a7cf53d69157938ea1

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

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/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.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/b94052830e3cd3be7141789a5ce6e62cf9f620a4
	https://git.kernel.org/stable/c/b99db02209ca4c2e2f53b82049ea3cbc82b54895
	https://git.kernel.org/stable/c/54e8b501b3ea9371e4a9aa639c75b681fa5680f0
	https://git.kernel.org/stable/c/6ee6cf42dc5230425cfce1ffefa5a8d8a99e6fce
	https://git.kernel.org/stable/c/69297b0d3369488af259e3a7cf53d69157938ea1