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 DCAE51ADC97 for ; Wed, 16 Apr 2025 14:17:49 +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=1744813069; cv=none; b=R2/MBNPOBBEXjX8ytTIXHzMvUcbrvTwwsfJ9weLm7EOS4Jk9Azf/+ufbr1MJyVoa5R28L486yuRhdivDitAaPsV56BbqWiAQlV7A9TizIbhTGzY0/SnewSZKgyshwV7VP74dMfSWInAmKJu+dDoe+5eYJSWX0fbFCGGalrz3H1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813069; c=relaxed/simple; bh=edRVuPb6pi450vLsx2rRairIh/HDK0VHdQeFKmc4Pxg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bOd80+SuE7sfbhtjsE1L/N50ILI0sfSCLqi3skhUquY6uI+pIVGdh2z81j8yO/G56h3z9nugJ+xwbzdSEVPbzdWNBE7dIujQ0q/54WfwGMhhMRQTvaSh9wHoJ9L4AgwhVMSxP9hXd1xHJooJzkKkm5ATKUwl49nDxQVG6/fA2ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SBhJylVN; 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="SBhJylVN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E4C4C4CEE2; Wed, 16 Apr 2025 14:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813069; bh=edRVuPb6pi450vLsx2rRairIh/HDK0VHdQeFKmc4Pxg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SBhJylVNeh/gvT6NHmRiTfPiJY6jtEAJqQD7tGj9E+Tsfu67e/ZxuOTaxpC+VSsD9 UbMGAzST8bzswCHaO80hvF4RsAXa8rDU2EbTpnjtABaovQnRAjcpRJXcW7we+pOC0s RBknzdKrfC6Ifim22NLarY8/Z43ByPG+82pbORaI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22108: bnxt_en: Mask the bd_cnt field in the TX BD properly Date: Wed, 16 Apr 2025 16:13:19 +0200 Message-ID: <2025041623-CVE-2025-22108-39f0@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2462; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=edRVuPb6pi450vLsx2rRairIh/HDK0VHdQeFKmc4Pxg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/dx2fK7Dv1+pfR680rt+ZvcUpUaxuuqmEms77DdMit XxMz9y81xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMWthmJ860efZu1pVZqam 5b5W6gt47vG5zmCYKyDgt/mJv1nsxm8PGfK23PjeLfdSBQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: bnxt_en: Mask the bd_cnt field in the TX BD properly The bd_cnt field in the TX BD specifies the total number of BDs for the TX packet. The bd_cnt field has 5 bits and the maximum number supported is 32 with the value 0. CONFIG_MAX_SKB_FRAGS can be modified and the total number of SKB fragments can approach or exceed the maximum supported by the chip. Add a macro to properly mask the bd_cnt field so that the value 32 will be properly masked and set to 0 in the bd_cnd field. Without this patch, the out-of-range bd_cnt value will corrupt the TX BD and may cause TX timeout. The next patch will check for values exceeding 32. The Linux kernel CVE team has assigned CVE-2025-22108 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 3948b05950fdd64002a5f182c65ba5cf2d53cf71 and fixed in 6.14.2 with commit f60b41b815826f15c4d0323f923f398c423178d0 Issue introduced in 6.4 with commit 3948b05950fdd64002a5f182c65ba5cf2d53cf71 and fixed in 6.15-rc1 with commit 107b25db61122d8f990987895c2912927b8b6e3f 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-2025-22108 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/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.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/f60b41b815826f15c4d0323f923f398c423178d0 https://git.kernel.org/stable/c/107b25db61122d8f990987895c2912927b8b6e3f