{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139589","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.942Z","datePublished":"2026-11-30T13:36:09.143Z","dateUpdated":"2026-12-01T05:42:52.921Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:52.921Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: Fix the PD and DPI table size\n\nThe PD and DPI bitmaps were sized as max >> 3 (bytes),\nbut bitmap ops (set_bit(), clear_bit(), find_first_bit(),\ntest_and_set_bit()) operate on whole unsigned long words,\nso whenever max isn't a multiple of BITS_PER_LONG,\nthe buffer under-allocates and the top word's bitops\nread/write past the end of the kmalloc()'d buffer.\nMost exposed on the DPI table, since dpit->max comes from the\nfirmware-reported dev_attr->max_dpi with no alignment guarantee.\n\nFix the size of both allocations with\nBITS_TO_LONGS(max) * sizeof(unsigned long)."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI:N - The attacker allocates and frees the DPIs themselves through their own uverbs ioctls. No other user has to act.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/qplib_res.c"],"versions":[{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"7fc3d76a85e375ad4b8a973b62f1375e843c2d7e","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"9e8815ce3cd311483ea77b234e37ccae13afec18","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"5ac21522aeecb95dd6552d17fbdbc005557c801a","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"d93cb72b3cb39780494e2bf8df1c295e2f334fc6","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"83fafba5f73431bf34ef19b23d024854b07c95a1","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"2660aff8fcabfeeadb31b09ab1cafa82edff7da5","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"d186095b3e9e19e348e9001279cf0b82e13e7c7e","status":"affected","versionType":"git"},{"version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","lessThan":"aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/qplib_res.c"],"versions":[{"version":"4.11","status":"affected"},{"version":"0","lessThan":"4.11","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/7fc3d76a85e375ad4b8a973b62f1375e843c2d7e"},{"url":"https://git.kernel.org/stable/c/9e8815ce3cd311483ea77b234e37ccae13afec18"},{"url":"https://git.kernel.org/stable/c/5ac21522aeecb95dd6552d17fbdbc005557c801a"},{"url":"https://git.kernel.org/stable/c/d93cb72b3cb39780494e2bf8df1c295e2f334fc6"},{"url":"https://git.kernel.org/stable/c/83fafba5f73431bf34ef19b23d024854b07c95a1"},{"url":"https://git.kernel.org/stable/c/2660aff8fcabfeeadb31b09ab1cafa82edff7da5"},{"url":"https://git.kernel.org/stable/c/d186095b3e9e19e348e9001279cf0b82e13e7c7e"},{"url":"https://git.kernel.org/stable/c/aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6"}],"title":"RDMA/bnxt_re: Fix the PD and DPI table size","x_generator":{"engine":"bippy-1.2.0"}}}}