Skip to contentSkip to conversation

CVE-2026-97966: octeontx2-pf: reset HTB scheduler topology before freeing queues

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

octeontx2-pf: reset HTB scheduler topology before freeing queues

HTB offload programs NIX_AF_TLxX_TOPOLOGY on QoS-allocated scheduler queues via otx2_qos_txschq_set_parent_topology(), but teardown freed those queues without clearing TOPOLOGY. The AF only restores PARENT and SCHEDULE on free, so PRIO_ANCHOR/RR_PRIO settings can survive in the shared scheduler pool and affect later allocations.

Add otx2_qos_reset_schq_topology() and otx2_qos_free_hw_schq() to zero TL4 through TL2 TOPOLOGY before each schq is returned to the AF during hierarchy teardown and cfg rollback. Skip the aggregation level (TL1):
it is a per-tx-link queue shared by the PF, default Tx hierarchy and VFs, and is not freed back to the AF by nix_txschq_free_one().

The Linux kernel CVE team has assigned CVE-2026-97966 to this issue.

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

	Issue introduced in 6.5 with commit 5e6808b4c68d7882971514ab3279926eb07c8b2d and fixed in 6.12.111 with commit 0aa2dd6eaa347c7aab448df0eec0afcfe7489885
	Issue introduced in 6.5 with commit 5e6808b4c68d7882971514ab3279926eb07c8b2d and fixed in 6.18.53 with commit 621c99be42e3f5cb68a6af9480a255218a761c4e
	Issue introduced in 6.5 with commit 5e6808b4c68d7882971514ab3279926eb07c8b2d and fixed in 7.2.7 with commit 2df186418e17b30b319cf9ff81aad137692ab107
	Issue introduced in 6.5 with commit 5e6808b4c68d7882971514ab3279926eb07c8b2d and fixed in 7.3-rc3 with commit ef39fca8508597fa565cf2be72a884a712fb98af

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-2026-97966

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/qos.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/0aa2dd6eaa347c7aab448df0eec0afcfe7489885
	https://git.kernel.org/stable/c/621c99be42e3f5cb68a6af9480a255218a761c4e
	https://git.kernel.org/stable/c/2df186418e17b30b319cf9ff81aad137692ab107
	https://git.kernel.org/stable/c/ef39fca8508597fa565cf2be72a884a712fb98af