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 AAD79279DC8 for ; Tue, 13 Jan 2026 15:36:09 +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=1768318569; cv=none; b=el+0A8MXJEuBU/twLiSNUdn/md6ZEZj4hVne4FVb8n/wrSsbcpJNJjZnITHCKC0ZJupHGO2+5QQcfhpB7b2xBrFw6uqFj9K17/M49deACQWFjT2ZmJZr2FG2Jps+FbHQb2aqAKUo/FzqgfiGaiI9icUpVZFC1sHLHVpzpviHUiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318569; c=relaxed/simple; bh=staLnFku07yDNsZ5eKsGva4n+99pC5T6JW+u7rsmDcs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ndToTHeQ8gx4++dWroisTe9od9XBKC2o7wKqLTAyr/MYuz/LF38BjXAlcb1l/Ayf63DqSgU6g19/VOLwapYW5SGarhxsvPKQY6OgRGWSIkNfpJu/l+N9uUNoxRU3YmwHz7oX2uUzRJEpdHexw5xfp1i8E2qzVvTC0zh+lmYHvsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bbC/Q4gr; 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="bbC/Q4gr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34B75C19421; Tue, 13 Jan 2026 15:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318569; bh=staLnFku07yDNsZ5eKsGva4n+99pC5T6JW+u7rsmDcs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=bbC/Q4grrTPKvvBIw+PHh9qRJeurdRWoLcduO96igm4hb78RHvBW7MhDoPvwxabl2 3TuPNSJ7F6dYR2MyREhxJyhwwzUv8ApHtDwlnk0l53ZiZ+IEZxP9cb1mZWM60gzj0g YpSTZ+Jjum7Tnjdpi95SAftwNt9HOmytzrRcwwVA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71092: RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats() Date: Tue, 13 Jan 2026 16:35:51 +0100 Message-ID: <2026011342-CVE-2025-71092-9f73@gregkh> X-Mailer: git-send-email 2.52.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=2507; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ril0HNprvjjc3cfuSxKMlFH2FB2MLh4Lza3MVDqq1is=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpaX4cS5s2iuk/t3Dhk5d22zyBeWrnW16rpY8vfH5RL 7LDzyukI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbymo1hftqi6CiXRTKh9573 mR6YHuGbwG6hyTA/SqT+lWPvhzmTwhz9N7UdXfRVcf9PAA== 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: RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats() Commit ef56081d1864 ("RDMA/bnxt_re: RoCE related hardware counters update") added three new counters and placed them after BNXT_RE_OUT_OF_SEQ_ERR. BNXT_RE_OUT_OF_SEQ_ERR acts as a boundary marker for allocating hardware statistics with different num_counters values on chip_gen_p5_p7 devices. As a result, BNXT_RE_NUM_STD_COUNTERS are used when allocating hw_stats, which leads to an out-of-bounds write in bnxt_re_copy_err_stats(). The counters BNXT_RE_REQ_CQE_ERROR, BNXT_RE_RESP_CQE_ERROR, and BNXT_RE_RESP_REMOTE_ACCESS_ERRS are applicable to generic hardware, not only p5/p7 devices. Fix this by moving these counters before BNXT_RE_OUT_OF_SEQ_ERR so they are included in the generic counter set. The Linux kernel CVE team has assigned CVE-2025-71092 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit ef56081d1864582a6db50710733416c0510b7826 and fixed in 6.18.4 with commit 369a161c48723f60f06f3510b82ea7d96d0499ab Issue introduced in 6.18 with commit ef56081d1864582a6db50710733416c0510b7826 and fixed in 6.19-rc4 with commit 9b68a1cc966bc947d00e4c0df7722d118125aa37 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-71092 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/infiniband/hw/bnxt_re/hw_counters.h 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/369a161c48723f60f06f3510b82ea7d96d0499ab https://git.kernel.org/stable/c/9b68a1cc966bc947d00e4c0df7722d118125aa37