Bug 2586833 (CVE-2026-139589) - CVE-2026-139589 kernel: kernel: bnxt_re: out-of-bounds memory access via improper bitmap table sizing
Summary: CVE-2026-139589 kernel: kernel: bnxt_re: out-of-bounds memory access via impr...
Keywords:
Status: NEW
Alias: CVE-2026-139589
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 14:43 UTC by OSIDB Bzimport
Modified: 2026-12-01 03:59 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 14:43:11 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.