{"id":"CVE-2026-90079","aliases":["CVE-2026-90079"],"related":[],"kind":"vulnerability","state":"published","title":"octeontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init()\n\nrvu_mbox_init() is called separately for AF-PF mailboxes during probe\nand for AF-VF mailboxes when SR-IOV is enabled.  Each call used to\nallocate a new ng_rvu object, leaking the first allocation when the\npointer was overwritten on the second call.\n\nSharing one ng_rvu across both paths exposed several teardown bugs:\nthe error path freed all cn20k mailbox DMA and kfree()d ng_rvu even\nwhen only the failing init type should be unwound, leaving live AF-PF\nmailbox memory in use after an AF-VF init failure.  mutex_init() was\nalso re-run on the AF-VF path while AF-PF mailbox handlers could still\nhold rvu->mbox_lock.  Probe and SR-IOV failure paths did not release\ncn20k mailbox DMA either, since cleanup only happened in rvu_remove().\n\nAllocate ng_rvu once with devm_kzalloc(), initialize mbox_lock in the\nsame block, unwind only the mailbox memory for the failing init type,\nand free cn20k mailbox DMA from the probe and pci_enable_sriov()\nerror paths.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init()\n\nrvu_mbox_init() is called separately for AF-PF mailboxes during probe\nand for AF-VF mailboxes when SR-IOV is enabled.  Each call used to\nallocate a new ng_rvu object, leaking the first allocation when the\npointer was overwritten on the second call.\n\nSharing one ng_rvu across both paths exposed several teardown bugs:\nthe error path freed all cn20k mailbox DMA and kfree()d ng_rvu even\nwhen only the failing init type should be unwound, leaving live AF-PF\nmailbox memory in use after an AF-VF init failure.  mutex_init() was\nalso re-run on the AF-VF path while AF-PF mailbox handlers could still\nhold rvu->mbox_lock.  Probe and SR-IOV failure paths did not release\ncn20k mailbox DMA either, since cleanup only happened in rvu_remove().\n\nAllocate ng_rvu once with devm_kzalloc(), initialize mbox_lock in the\nsame block, unwind only the mailbox memory for the failing init type,\nand free cn20k mailbox DMA from the probe and pci_enable_sriov()\nerror paths.","source":"cvelist"}],"published":"2026-09-17T16:05:57.541Z","modified":"2026-10-19T09:18:56.767Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e53ee4acb220acab6832669334279367b0206af6","fixed":"c08314f91782983d67af0807ed1360e404ac4a8b","status":"affected"},{"type":"git","introduced":"e53ee4acb220acab6832669334279367b0206af6","fixed":"a0fcbea79f034f49bdd44915f28938922023458d","status":"affected"},{"type":"git","introduced":"e53ee4acb220acab6832669334279367b0206af6","fixed":"3b11a77f69980932c3924054d66e565c9a135747","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c08314f91782983d67af0807ed1360e404ac4a8b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0fcbea79f034f49bdd44915f28938922023458d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b11a77f69980932c3924054d66e565c9a135747","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90079","url":"https://www.cve.org/CVERecord?id=CVE-2026-90079","licence":"CVE Terms of Use","modified":"2026-10-19T08:57:35.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90079","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90079","licence":"Public domain","modified":"2026-10-19T09:18:56.767Z"}],"updatedAt":"2026-11-25T22:59:39.296Z","epss":{"score":0.00198,"percentile":0.05487,"date":"2026-11-30T12:00:22.000Z"}}