CVE-2026-139589
published high CVSS 3.1 · 7.0RDMA/bnxt_re: Fix the PD and DPI table size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 7fc3d76a85e375ad4b8a973b62f1375e843c2d7e · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 9e8815ce3cd311483ea77b234e37ccae13afec18 · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 5ac21522aeecb95dd6552d17fbdbc005557c801a · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < d93cb72b3cb39780494e2bf8df1c295e2f334fc6 · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 83fafba5f73431bf34ef19b23d024854b07c95a1 · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 2660aff8fcabfeeadb31b09ab1cafa82edff7da5 · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < d186095b3e9e19e348e9001279cf0b82e13e7c7e · 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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).
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.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The undersized bitmap from bnxt_qplib_alloc_dpi_tbl() is reached only through local uverbs ioctls on /dev/infiniband/uverbsN: bnxt_re_alloc_pd -> bnxt_qplib_alloc_dpi, BNXT_RE_ALLOC_WC_PAGE and BNXT_RE_METHOD_DBR_ALLOC -> bnxt_qplib_alloc_uc_dpi. No network peer supplies any input to the DPI allocator. AC:H - The bitmap only leaves its kmalloc slot when dpit->max, set by the BAR2 length, wcreg.offset and firmware max_dpi, equals 8*S+1..8*S+7 for a size class S (e.g. 1025-1031, 2049-2055). Otherwise the overrun stays in slab slack. The attacker cannot choose this firmware/BAR geometry, though exhausting DPIs and grooming the neighbour are under their control. PR:L - uverbs_devnode() creates /dev/infiniband/uverbs* with mode 0666, so any local unprivileged user can open a ucontext and allocate DPIs (one per alloc_pd per context, or without limit via BNXT_RE_METHOD_DBR_ALLOC) until find_first_bit reaches the last, out-of-bounds word. UI:N - The attacker allocates and frees the DPIs themselves through their own uverbs ioctls. No other user has to act. S:U - The corruption hits the neighbouring kernel slab object and stays within the kernel's own security authority. No VM or IOMMU boundary is crossed. C:H - In the bad geometry, find_first_bit() reads the neighbouring kmalloc-S object's first byte and the DPI index it returns reveals those bits. A bit flip in a refcount or list pointer there (e.g. msg_msg m_list) can be turned into a use-after-free, giving arbitrary reads. I:H - clear_bit() in bnxt_qplib_alloc_dpi/alloc_uc_dpi clears, and test_and_set_bit() in dealloc_dpi/free_uc_dpi sets, up to 7 low bits of the first byte of the adjacent slab object. Alloc and free are separate steps the attacker can sequence, so this is a repeatable bit-flip write into an object they groom. A:H - Flipping bits in the first byte of whatever object sits next to dpit->tbl (a pointer or refcount) can cause an oops or use-after-free crash. KASAN builds report slab-out-of-bounds as soon as the last word is touched.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 7fc3d76a85e375ad4b8a973b62f1375e843c2d7e (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 9e8815ce3cd311483ea77b234e37ccae13afec18 (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 5ac21522aeecb95dd6552d17fbdbc005557c801a (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < d93cb72b3cb39780494e2bf8df1c295e2f334fc6 (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 83fafba5f73431bf34ef19b23d024854b07c95a1 (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < 2660aff8fcabfeeadb31b09ab1cafa82edff7da5 (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < d186095b3e9e19e348e9001279cf0b82e13e7c7e (affected · git)1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to < aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.11 (affected)0 to < 4.11 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/2660aff8fcabfeeadb31b09ab1cafa82edff7da5
- https://git.kernel.org/stable/c/5ac21522aeecb95dd6552d17fbdbc005557c801a
- https://git.kernel.org/stable/c/7fc3d76a85e375ad4b8a973b62f1375e843c2d7e
- https://git.kernel.org/stable/c/83fafba5f73431bf34ef19b23d024854b07c95a1
- https://git.kernel.org/stable/c/9e8815ce3cd311483ea77b234e37ccae13afec18
- https://git.kernel.org/stable/c/aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6
- https://git.kernel.org/stable/c/d186095b3e9e19e348e9001279cf0b82e13e7c7e
- https://git.kernel.org/stable/c/d93cb72b3cb39780494e2bf8df1c295e2f334fc6
Provider assertions
1Linux · cna
RDMA/bnxt_re: Fix the PD and DPI table size
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 02a871225ed687afe85fd94d76e416e107f6c600c2941d3ceb9d7995febfcc1e
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record