UBUNTU-CVE-2026-90079: Medium severity ubuntu/linux-hwe-edge vulnerability
In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: fix cn20k mailbox lifetime on repeated rvumboxinit() rvumboxinit() is called separately for AF-PF mailboxes during probe and for AF-VF mailboxes when SR-IOV is enabled. Each call used to allocate a new ngrvu object, leaking the first allocation when the pointer was overwritten on the second call. Sharing one ngrvu across both paths exposed several teardown bugs: the error path freed all cn20k mailbox DMA and kfree()d ngrvu even when only the failing init type should be unwound, leaving live AF-PF mailbox memory in use after an AF-VF init failure. mutexinit() was also re-run on the AF-VF path while AF-PF mailbox handlers could still hold rvu->mboxlock. Probe and SR-IOV failure paths did not release cn20k mailbox DMA either, since cleanup only happened in rvuremove(). Allocate ngrvu once with devmkzalloc(), initialize mboxlock in the same block, unwind only the mailbox memory for the failing init type, and free cn20k mailbox DMA from the probe and pcienablesriov() error paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
Allocate ng_rvu once with devm_kzalloc(), initialize mbox_lock in the same allocation block, and do not re-run mutex_init() on the AF-VF initialization path.
- Compensating control
On a failing rvu_mbox_init() type, unwind only that type's mailbox memory instead of freeing all cn20k mailbox DMA or ng_rvu shared by the other mailbox type.
- Compensating control
Free cn20k mailbox DMA in the probe error path and in pci_enable_sriov() error paths, not only in rvu_remove().