{"id":"CVE-2025-71092","state":"PUBLISHED","title":"RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()\n\nCommit ef56081d1864 (\"RDMA/bnxt_re: RoCE related hardware counters\nupdate\") added three new counters and placed them after\nBNXT_RE_OUT_OF_SEQ_ERR.\n\nBNXT_RE_OUT_OF_SEQ_ERR acts as a boundary marker for allocating hardware\nstatistics with different num_counters values on chip_gen_p5_p7 devices.\n\nAs a result, BNXT_RE_NUM_STD_COUNTERS are used when allocating\nhw_stats, which leads to an out-of-bounds write in\nbnxt_re_copy_err_stats().\n\nThe counters BNXT_RE_REQ_CQE_ERROR, BNXT_RE_RESP_CQE_ERROR, and\nBNXT_RE_RESP_REMOTE_ACCESS_ERRS are applicable to generic hardware, not\nonly p5/p7 devices.\n\nFix this by moving these counters before BNXT_RE_OUT_OF_SEQ_ERR so they\nare included in the generic counter set.","publishedAt":"2026-01-13T15:34:53.110Z","updatedAt":"2026-08-05T12:12:00.926Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef56081d1864582a6db50710733416c0510b7826","status":"affected","lessThan":"369a161c48723f60f06f3510b82ea7d96d0499ab","versionType":"git"},{"version":"ef56081d1864582a6db50710733416c0510b7826","status":"affected","lessThan":"9b68a1cc966bc947d00e4c0df7722d118125aa37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.4","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.h"]}],"references":["https://git.kernel.org/stable/c/369a161c48723f60f06f3510b82ea7d96d0499ab","https://git.kernel.org/stable/c/9b68a1cc966bc947d00e4c0df7722d118125aa37"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71092.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71092","state":"PUBLISHED","datePublished":"2026-01-13T15:34:53.110Z","dateUpdated":"2026-08-05T12:12:00.926Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:30:19.650Z"},"containers":{"cna":{"title":"RDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: Fix OOB write in bnxt_re_copy_err_stats()\n\nCommit ef56081d1864 (\"RDMA/bnxt_re: RoCE related hardware counters\nupdate\") added three new counters and placed them after\nBNXT_RE_OUT_OF_SEQ_ERR.\n\nBNXT_RE_OUT_OF_SEQ_ERR acts as a boundary marker for allocating hardware\nstatistics with different num_counters values on chip_gen_p5_p7 devices.\n\nAs a result, BNXT_RE_NUM_STD_COUNTERS are used when allocating\nhw_stats, which leads to an out-of-bounds write in\nbnxt_re_copy_err_stats().\n\nThe counters BNXT_RE_REQ_CQE_ERROR, BNXT_RE_RESP_CQE_ERROR, and\nBNXT_RE_RESP_REMOTE_ACCESS_ERRS are applicable to generic hardware, not\nonly p5/p7 devices.\n\nFix this by moving these counters before BNXT_RE_OUT_OF_SEQ_ERR so they\nare included in the generic counter set."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef56081d1864582a6db50710733416c0510b7826","status":"affected","lessThan":"369a161c48723f60f06f3510b82ea7d96d0499ab","versionType":"git"},{"version":"ef56081d1864582a6db50710733416c0510b7826","status":"affected","lessThan":"9b68a1cc966bc947d00e4c0df7722d118125aa37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.4","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/369a161c48723f60f06f3510b82ea7d96d0499ab"},{"url":"https://git.kernel.org/stable/c/9b68a1cc966bc947d00e4c0df7722d118125aa37"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI:N - The attacker directly triggers the vulnerable counter refresh, requiring no action by another user.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:12:00.926Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}