Linux: octeontx2-pf: reset HTB scheduler topology before freeing queues
What fixes it
- 16c5c8ea5017952ff14c87626a45359d195dda6fLinuxCVE List
- 0aa2dd6eaa347c7aab448df0eec0afcfe7489885LinuxCVE List
- 621c99be42e3f5cb68a6af9480a255218a761c4eLinuxCVE List
- 2df186418e17b30b319cf9ff81aad137692ab107LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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().
Text from CVE List
Affected versions 12
- Linuxaffected: 5e6808b4c68d7882971514ab3279926eb07c8b2d before 16c5c8ea5017952ff14c87626a45359d195dda6fCVE List
- Linuxaffected: 5e6808b4c68d7882971514ab3279926eb07c8b2d before 0aa2dd6eaa347c7aab448df0eec0afcfe7489885CVE List
- Linuxaffected: 5e6808b4c68d7882971514ab3279926eb07c8b2d before 621c99be42e3f5cb68a6af9480a255218a761c4eCVE List
- Linuxaffected: 5e6808b4c68d7882971514ab3279926eb07c8b2d before 2df186418e17b30b319cf9ff81aad137692ab107CVE List
- Linuxaffected: 5e6808b4c68d7882971514ab3279926eb07c8b2d before ef39fca8508597fa565cf2be72a884a712fb98afCVE List
- Linuxaffected: 6.5CVE List
- Linuxunaffected: all versions before 6.5CVE List
- Linuxunaffected: 6.6.158 through 6.6.*CVE List
- Linuxunaffected: 6.12.111 through 6.12.*CVE List
- Linuxunaffected: 6.18.53 through 6.18.*CVE List
- Linuxunaffected: 7.2.7 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/16c5c8ea5017952ff14c87626a45359d195dda6fReferencevia CVE List
- git.kernel.org/stable/c/0aa2dd6eaa347c7aab448df0eec0afcfe7489885Referencevia CVE List
- git.kernel.org/stable/c/621c99be42e3f5cb68a6af9480a255218a761c4eReferencevia CVE List
- git.kernel.org/stable/c/2df186418e17b30b319cf9ff81aad137692ab107Referencevia CVE List
- git.kernel.org/stable/c/ef39fca8508597fa565cf2be72a884a712fb98afReferencevia CVE List