# CVE-2026-90079: octeontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 5% of CVEs (2026-11-30)
- Published: 2026-09-17T16:05:57.541Z
- Modified: 2026-10-19T09:18:56.767Z
- Assigned by: Linux

## Description

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

octeontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init()

rvu_mbox_init() 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 ng_rvu object, leaking the first allocation when the
pointer was overwritten on the second call.

Sharing one ng_rvu across both paths exposed several teardown bugs:
the error path freed all cn20k mailbox DMA and kfree()d ng_rvu even
when only the failing init type should be unwound, leaving live AF-PF
mailbox memory in use after an AF-VF init failure.  mutex_init() was
also re-run on the AF-VF path while AF-PF mailbox handlers could still
hold rvu->mbox_lock.  Probe and SR-IOV failure paths did not release
cn20k mailbox DMA either, since cleanup only happened in rvu_remove().

Allocate ng_rvu once with devm_kzalloc(), initialize mbox_lock in the
same block, unwind only the mailbox memory for the failing init type,
and free cn20k mailbox DMA from the probe and pci_enable_sriov()
error paths.

(As written by CVE List.)

## Affected

- Linux Linux: from e53ee4acb220acab6832669334279367b0206af6 before c08314f91782983d67af0807ed1360e404ac4a8b; from e53ee4acb220acab6832669334279367b0206af6 before a0fcbea79f034f49bdd44915f28938922023458d; from e53ee4acb220acab6832669334279367b0206af6 before 3b11a77f69980932c3924054d66e565c9a135747; 6.17 (not affected: before 6.17; from 6.18.57 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/c08314f91782983d67af0807ed1360e404ac4a8b>
- <https://git.kernel.org/stable/c/a0fcbea79f034f49bdd44915f28938922023458d>
- <https://git.kernel.org/stable/c/3b11a77f69980932c3924054d66e565c9a135747>

## Sources

- CVE List: [CVE-2026-90079](https://www.cve.org/CVERecord?id=CVE-2026-90079), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90079](https://nvd.nist.gov/vuln/detail/CVE-2026-90079), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90079 · Whole record: https://cve.day/CVE-2026-90079.json · Rebuilt by cve.day 2026-11-25T22:59:39.296Z
