octeontx2-af: Block VFs from clobbering special CGX PKIND state
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 94d942c5fb970ac2166216838b278613decfa9a0 · < 3bd438a58e910db5dc369aa25dfed1fc95f1b596| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: Block VFs from clobbering special CGX PKIND state
PF and VF NIX LFs that share a CGX LMAC reuse the same hardware PKIND programming. When HiGig2 or EDSA parsing is enabled, a VF NIX LF alloc must not reset the LMAC RX PKIND or default TX parse config over the PF setup.
Add cgx_get_pkind() and rvu_cgx_is_pkind_config_permitted() so VFs skip cgx_set_pkind(), rvu_npc_set_pkind(), and NIX_AF_LFX_TX_PARSE_CFG updates when the LMAC is using NPC_RX_HIGIG_PKIND or NPC_RX_EDSA_PKIND.
From the CVE record · Linux
In the Linux kernel's octeontx2-af driver, a VF allocating a NIX logical function can overwrite PF receive and transmit parsing settings when both share a CGX LMAC using HiGig2 or EDSA parsing. This requires access to a VF; the input does not describe a network attack or user interaction.
Engineers running Linux kernels with octeontx2-af and PF/VF NIX logical functions sharing a CGX LMAC should check their kernel version against the vendor advisory.