{"api_version":"1","generated_at":"2026-12-01T06:50:23+00:00","cve":"CVE-2026-139589","urls":{"html":"https://cve.report/CVE-2026-139589","api":"https://cve.report/api/cve/CVE-2026-139589.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139589","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139589"},"summary":{"title":"RDMA/bnxt_re: Fix the PD and DPI table size","description":"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).","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:40","updated_at":"2026-12-01 06:17:46"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6","name":"https://git.kernel.org/stable/c/aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2660aff8fcabfeeadb31b09ab1cafa82edff7da5","name":"https://git.kernel.org/stable/c/2660aff8fcabfeeadb31b09ab1cafa82edff7da5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/83fafba5f73431bf34ef19b23d024854b07c95a1","name":"https://git.kernel.org/stable/c/83fafba5f73431bf34ef19b23d024854b07c95a1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9e8815ce3cd311483ea77b234e37ccae13afec18","name":"https://git.kernel.org/stable/c/9e8815ce3cd311483ea77b234e37ccae13afec18","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5ac21522aeecb95dd6552d17fbdbc005557c801a","name":"https://git.kernel.org/stable/c/5ac21522aeecb95dd6552d17fbdbc005557c801a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7fc3d76a85e375ad4b8a973b62f1375e843c2d7e","name":"https://git.kernel.org/stable/c/7fc3d76a85e375ad4b8a973b62f1375e843c2d7e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d186095b3e9e19e348e9001279cf0b82e13e7c7e","name":"https://git.kernel.org/stable/c/d186095b3e9e19e348e9001279cf0b82e13e7c7e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d93cb72b3cb39780494e2bf8df1c295e2f334fc6","name":"https://git.kernel.org/stable/c/d93cb72b3cb39780494e2bf8df1c295e2f334fc6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139589","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139589","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 7fc3d76a85e375ad4b8a973b62f1375e843c2d7e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 9e8815ce3cd311483ea77b234e37ccae13afec18 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 5ac21522aeecb95dd6552d17fbdbc005557c801a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 d93cb72b3cb39780494e2bf8df1c295e2f334fc6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 83fafba5f73431bf34ef19b23d024854b07c95a1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 2660aff8fcabfeeadb31b09ab1cafa82edff7da5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 d186095b3e9e19e348e9001279cf0b82e13e7c7e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1ac5a404797523cedaf424a3aaa3cf8f9548dff8 aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/hw/bnxt_re/qplib_res.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7fc3d76a85e375ad4b8a973b62f1375e843c2d7e","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"9e8815ce3cd311483ea77b234e37ccae13afec18","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"5ac21522aeecb95dd6552d17fbdbc005557c801a","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"d93cb72b3cb39780494e2bf8df1c295e2f334fc6","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"83fafba5f73431bf34ef19b23d024854b07c95a1","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"2660aff8fcabfeeadb31b09ab1cafa82edff7da5","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"d186095b3e9e19e348e9001279cf0b82e13e7c7e","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"},{"lessThan":"aa6c2ef821a6ba7f3fd58cfcc031b2d16f3811c6","status":"affected","version":"1ac5a404797523cedaf424a3aaa3cf8f9548dff8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/hw/bnxt_re/qplib_res.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.11"},{"lessThan":"4.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:52.921Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139589","datePublished":"2026-11-30T13:36:09.143Z","dateReserved":"2026-11-30T13:22:15.942Z","dateUpdated":"2026-12-01T05:42:52.921Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:40","lastModifiedDate":"2026-12-01 06:17:46","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139589","Ordinal":"1","Title":"RDMA/bnxt_re: Fix the PD and DPI table size","CVE":"CVE-2026-139589","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139589","Ordinal":"1","NoteData":"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).","Type":"Description","Title":"RDMA/bnxt_re: Fix the PD and DPI table size"}]}}}