RDMA/bnxt_re: Fix the PD and DPI table size
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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).
| Product | Versions |
|---|---|
| Linux Linux | 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before 7fc3d76a85e375ad4b8a973b62f1375e843c2d7e Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before 9e8815ce3cd311483ea77b234e37ccae13afec18 Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before 5ac21522aeecb95dd6552d17fbdbc005557c801a Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before d93cb72b3cb39780494e2bf8df1c295e2f334fc6 Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before 83fafba5f73431bf34ef19b23d024854b07c95a1 Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before 2660aff8fcabfeeadb31b09ab1cafa82edff7da5 Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before d186095b3e9e19e348e9001279cf0b82e13e7c7e Affected1ac5a404797523cedaf424a3aaa3cf8f9548dff8 to before aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6 Affected |
| Linux Linux | 4.11 Affectedbefore 4.11 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/7fc3d76a85e375ad4b8a973b62f1375e843c2d7e
- https://git.kernel.org/stable/c/9e8815ce3cd311483ea77b234e37ccae13afec18
- https://git.kernel.org/stable/c/5ac21522aeecb95dd6552d17fbdbc005557c801a
- https://git.kernel.org/stable/c/d93cb72b3cb39780494e2bf8df1c295e2f334fc6
- https://git.kernel.org/stable/c/83fafba5f73431bf34ef19b23d024854b07c95a1
- https://git.kernel.org/stable/c/2660aff8fcabfeeadb31b09ab1cafa82edff7da5
- https://git.kernel.org/stable/c/d186095b3e9e19e348e9001279cf0b82e13e7c7e
- https://git.kernel.org/stable/c/aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.