Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2209634CFC0 for ; Fri, 24 Apr 2026 14:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041915; cv=none; b=ZVnmjodiUOp5D2lwvwCb2RC4Gdjl4ixwvyiVBFT1ijWm5k7VbvdqW3dUCylhkErpwivdj+zdZ0RZSEwu6lKmd3YyPlhbo1xtKTFDbzDrJj4qnC9piHHxPCEHZtriOjJVclvnUMIx2gOO+ZTnsu7wptjQ3DB+RrFauKrdSXn3HKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041915; c=relaxed/simple; bh=LSFrIkprTzFDEakvMa6hrgtrmmM1dUhIqPGZqtgmjyc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZstQ3ybtNf0dLZnbTxn4qGoQ0Rv9hd351l+hiBQddbtKLeckHY/HyoNzbwVNIGKwXvphnQBh7Q3Lk1V0j0dsRUfTtrXzzbvyXFaw+3T+raXb+lYL3WstvEihUIwUA3rv+6a1jT5Zqt2Dm1XW3Li7W/ry8fdAyr3TV6PyjkGzP1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s2MRRmru; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="s2MRRmru" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB182C19425; Fri, 24 Apr 2026 14:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041915; bh=LSFrIkprTzFDEakvMa6hrgtrmmM1dUhIqPGZqtgmjyc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=s2MRRmru5UNFEGCsJJRIGPlxu2tMHrX/d3kzjqmqP555NI9pHUEtJ+yA5/G/Jo1+8 erLlFgQej2svXt4sKzfaMS2P4fcy6hbb2QJ+BMtskC/5BBaTdusZsftioR/zERIXJt ZASSX/cHZlb7jRFzHXpoKJ54HNLKQoszgTCPUuNQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31621: bnge: return after auxiliary_device_uninit() in error path Date: Fri, 24 Apr 2026 16:43:57 +0200 Message-ID: <2026042425-CVE-2026-31621-0c38@gregkh> X-Mailer: git-send-email 2.53.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=2263; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TnlNJaf6dJVSjzPb6zNr8Jz7xt9FyG3Y3wq8eQxtF/E=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG3tn7fnrtqzPuPLDk5gpJU3ano03XKOyEoK18691/ cqWfazaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5y8swh0Pz0sH/cisF3+la rf+f8273PePyBwxzRX5O+NPnMmNC3rXYA1tnnCsvEOz9AgA= 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: bnge: return after auxiliary_device_uninit() in error path When auxiliary_device_add() fails, the error block calls auxiliary_device_uninit() but does not return. The uninit drops the last reference and synchronously runs bnge_aux_dev_release(), which sets bd->auxr_dev = NULL and frees the underlying object. The subsequent bd->auxr_dev->net = bd->netdev then dereferences NULL, which is not a good thing to have happen when trying to clean up from an error. Add the missing return, as the auxiliary bus documentation states is a requirement (seems that LLM tools read documentation better than humans do...) The Linux kernel CVE team has assigned CVE-2026-31621 to this issue. Affected and fixed versions =========================== Fixed in 6.19.14 with commit 38c383ec6d37f4b5597f8e6a1f5c2ab31ea01d3a Fixed in 7.0.1 with commit 87bc3557c708110d83086bf091328271298a44e3 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-31621 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/broadcom/bnge/bnge_auxr.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/38c383ec6d37f4b5597f8e6a1f5c2ab31ea01d3a https://git.kernel.org/stable/c/87bc3557c708110d83086bf091328271298a44e3 https://git.kernel.org/stable/c/8b0c25528cb64f71a73b5c0d49cbbcb68540a4ce