CVE-2025-71092
published high CVSS 3.1 · 7.8RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxef56081d1864582a6db50710733416c0510b7826 to < 369a161c48723f60f06f3510b82ea7d96d0499ab · ef56081d1864582a6db50710733416c0510b7826 to < 9b68a1cc966bc947d00e4c0df7722d118125aa37 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.4 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable routine is reached through a local read of a per-port sysfs hardware-counter file or an RDMA_NLDEV_CMD_STAT_GET netlink request. Remote RoCE traffic can influence counter values but cannot itself invoke the vulnerable statistics refresh. AC:L - No race or condition outside the attacker's control is required; on an affected pre-P5/P7 adapter, an attacker can repeatedly and reliably request statistics. The required driver and supported hardware define the affected component rather than adding attack complexity. PR:L - The sysfs counter files are world-readable with mode 0444, and RDMA_NLDEV_CMD_STAT_GET has no RDMA_NL_ADMIN_PERM check. An ordinary unprivileged local user can therefore trigger the overwrite without capabilities or user namespaces. UI:N - The attacker directly triggers the vulnerable counter refresh, requiring no action by another user. S:U - The corruption occurs within the host kernel reached by the local attacker and does not inherently cross a VM, IOMMU, or other security-authority boundary. C:H - The three 64-bit stores cross into an adjacent heap object, enabling corruption of kernel objects that can plausibly be developed into control-flow and arbitrary-memory-access primitives, including disclosure of sensitive kernel memory. I:H - The function performs three out-of-bounds 64-bit writes 160, 168, and 176 bytes beyond the allocated counter array. Corruption of an adjacent heap object can support arbitrary kernel modification or code execution. A:H - The heap overwrite can corrupt pointers or other critical kernel state, causing an oops, panic, or complete system failure, and the unprivileged attacker can trigger it repeatedly.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ef56081d1864582a6db50710733416c0510b7826 to < 369a161c48723f60f06f3510b82ea7d96d0499ab (affected · git)ef56081d1864582a6db50710733416c0510b7826 to < 9b68a1cc966bc947d00e4c0df7722d118125aa37 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.4 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c8954ed89747c871b32feda971770a4ca6f1355a4728d630bdeae24d79c7217b
- Ingested
- 23 Sep 2026, 08:58:12 UTC
- Source record
- Official CVE record