CVE-2026-139589

RDMA/bnxt_re: Fix the PD and DPI table size

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/bnxt_re: Fix the PD and DPI table size

The PD and DPI bitmaps were sized as max >> 3 (bytes),
but bitmap ops (set_bit(), clear_bit(), find_first_bit(),
test_and_set_bit()) operate on whole unsigned long words,
so whenever max isn't a multiple of BITS_PER_LONG,
the buffer under-allocates and the top word's bitops
read/write past the end of the kmalloc()'d buffer.
Most exposed on the DPI table, since dpit->max comes from the
firmware-reported dev_attr->max_dpi with no alignment guarantee.

Fix the size of both allocations with
BITS_TO_LONGS(max) * sizeof(unsigned long).

Analysis

AI-generated

Technical impact

The BNXT_RE driver in the Linux kernel incorrectly sized the PD and DPI bitmap tables, allocating only max >> 3 bytes instead of the necessary bytes to cover all bits. Bitmap operations that work on whole unsigned long words then read and write past the allocated memory. This out-of-bounds access can corrupt kernel memory, potentially allowing a local attacker to trigger a kernel panic or execute arbitrary code in kernel mode, depending on the system configuration and the data overwritten.

Affected Systems

The vulnerability affects any Linux kernel that includes the BNXT_RE RDMA driver, as bundled in the mainline kernel and in downstream distributions. No specific kernel version list is provided in the advisory; thus any build that has not yet received the patch is considered vulnerable.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating no publicly known widespread exploitation at the time of this analysis. However, because the issue resides in kernel code, the potential impact is high. An exploiter would need to load the BNXT_RE driver and manipulate the DPI table size value obtained from firmware. The vulnerability does not appear to provide a straightforward remote attack vector; a local or elevated privilege user is more likely to be able to exploit it.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the BNXT_RE patch correcting the bitmap size calculations.
  • If an update is not yet available or cannot be applied immediately, temporarily disable the BNXT_RE driver or remove the BNXT_RE module from the system to prevent the vulnerable bitmap operations from executing.
  • As a temporary measure, ensure that firmware or user-space utilities providing dev_attr->max_dpi values align the reported size to a multiple of the system’s BITS_PER_LONG or validate the value before it is used by the driver.

Generated by OpenCVE AI on December 1, 2026 at 00:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-122
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/bnxt_re: Fix the PD and DPI table size The PD and DPI bitmaps were sized as max >> 3 (bytes), but bitmap ops (set_bit(), clear_bit(), find_first_bit(), test_and_set_bit()) operate on whole unsigned long words, so whenever max isn't a multiple of BITS_PER_LONG, the buffer under-allocates and the top word's bitops read/write past the end of the kmalloc()'d buffer. Most exposed on the DPI table, since dpit->max comes from the firmware-reported dev_attr->max_dpi with no alignment guarantee. Fix the size of both allocations with BITS_TO_LONGS(max) * sizeof(unsigned long).
Title RDMA/bnxt_re: Fix the PD and DPI table size
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM