Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8215D5A0ADC for ; Thu, 17 Sep 2026 16:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661614; cv=none; b=s7024hFbKVJV55g1VAPXOFYAHnFYCzph5XZviegHIaHSZhr6UnKreBx4qciayJZdNEkJFB5yYuX6ZQhsH/gsbK/Kip8J5qSbHXWpqfOQM/M2Myl6N9DL/EWlRJbT0C4XAveGyx7E8C2KrJStX+iMWc1g8ydsna4IfqYCuv23tHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661614; c=relaxed/simple; bh=4ZY93NbVS+w6ToVS7+RI1p1pGeHtlMNpcJOyRATKMvM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U7KQYuiObC8jnZretn582gxJeWuNOKTlCm4B+DiWyFSSrnEvWxnKq311k7sOaC249VilHY2Jjbvaslmj2B4ZSllKniTXu+Rg+HB/oNOoX0Nz8HbFNfhyjYlYl2C89mK1HvzlO4V/ZPGgxM5sw3yF4ZKPuSYN4hoLlD8XyxDt+g0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AyMwBmip; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AyMwBmip" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9AD31F00893; Thu, 17 Sep 2026 16:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661612; bh=93sonJGYINonukOUBX6GFkMqCwOOei9BteluJoS7yqc=; h=From:To:Cc:Subject:Date:Reply-To; b=AyMwBmipjdHD1FMaQqJhPxTr/OWs/f8nJtKJUNnnMgGA6E4jbdasoROF5cFqUk811 l2owxk54RU/OEYtBQJEsNEzF22kEmqI2sT+D+HO2X+c9kThc6nu6BEt8uThv+Wjukh hyK47jEd56kTI/5+y6YsPrtd8WDZfBQzqX2QIwt4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90079: octeontx2-af: fix cn20k mailbox lifetime on repeated rvu_mbox_init() Date: Thu, 17 Sep 2026 17:08:29 +0100 Message-ID: <2026091708-CVE-2026-90079-010a@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KK6E8pD4Bf4AkhKCm7a9YhGYlYnVkFn/jA8keq37OrE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBDIs2EsT2wO91oueTZkhs1XNseqcN9fb/U/n5/BH3 /xycUFERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE4TPDgi3rug/ePsnYvvWu UE1rX9GJM+d7vzEs6Dz5cvd9+4CpATZXfHfdX/PfV4rPFAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-90079 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit e53ee4acb220acab6832669334279367b0206af6 and fixed in 7.2.6 with commit a0fcbea79f034f49bdd44915f28938922023458d Issue introduced in 6.17 with commit e53ee4acb220acab6832669334279367b0206af6 and fixed in 7.3-rc1 with commit 3b11a77f69980932c3924054d66e565c9a135747 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-90079 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/ethernet/marvell/octeontx2/af/cn20k/api.h drivers/net/ethernet/marvell/octeontx2/af/cn20k/mbox_init.c drivers/net/ethernet/marvell/octeontx2/af/rvu.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a0fcbea79f034f49bdd44915f28938922023458d https://git.kernel.org/stable/c/3b11a77f69980932c3924054d66e565c9a135747