CVE-2026-139589: RDMA/bnxt_re: Fix the PD and DPI table size
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxtre: Fix the PD and DPI table size
The PD and DPI bitmaps were sized as max >> 3 (bytes), but bitmap ops (setbit(), clearbit(), findfirstbit(), testandsetbit()) operate on whole unsigned long words, so whenever max isn't a multiple of BITSPERLONG, 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 devattr->maxdpi with no alignment guarantee.
Fix the size of both allocations with BITSTOLONGS(max) sizeof(unsigned long).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In Linux kernel RDMA/bnxt_re, size both the PD and DPI bitmap allocations using BITS_TO_LONGS(max) * sizeof(unsigned long).
Event History
Frequently Asked Questions
Which systems are most likely to be exposed?
Systems using the Linux kernel bnxt_re RDMA driver are affected by the faulty bitmap sizing. The DPI table is most exposed because its maximum entry count is reported by firmware and has no alignment guarantee.
What condition triggers the out-of-bounds access?
The issue occurs when the PD or DPI maximum is not a multiple of BITS_PER_LONG. Bitmap operations then access the final unsigned-long word even though the allocated buffer was sized only as max >> 3 bytes.
What does the fix change?
The fix allocates both PD and DPI bitmap buffers using BITS_TO_LONGS(max) multiplied by sizeof(unsigned long), ensuring space for the complete final bitmap word.