{"id":"CVE-2024-50158","state":"PUBLISHED","title":"RDMA/bnxt_re: Fix out of bound check","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: Fix out of bound check\n\nDriver exports pacing stats only on GenP5 and P7 adapters. But while\nparsing the pacing stats, driver has a check for \"rdev->dbr_pacing\".  This\ncaused a trace when KASAN is enabled.\n\nBUG: KASAN: slab-out-of-bounds in bnxt_re_get_hw_stats+0x2b6a/0x2e00 [bnxt_re]\nWrite of size 8 at addr ffff8885942a6340 by task modprobe/4809","publishedAt":"2024-11-07T09:31:35.264Z","updatedAt":"2026-08-05T11:42:08.178Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"05c5fcc1869a08e36a29691699b6534e5a00a82b","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"c11b9b03ea5252898f91f3388c248f0dc47bda52","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"a9e6e7443922ac0a48243c35d03834c96926bff1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.59","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.6","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.c"]}],"references":["https://git.kernel.org/stable/c/05c5fcc1869a08e36a29691699b6534e5a00a82b","https://git.kernel.org/stable/c/c11b9b03ea5252898f91f3388c248f0dc47bda52","https://git.kernel.org/stable/c/a9e6e7443922ac0a48243c35d03834c96926bff1"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50158.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50158","state":"PUBLISHED","datePublished":"2024-11-07T09:31:35.264Z","dateUpdated":"2026-08-05T11:42:08.178Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.961Z"},"containers":{"cna":{"title":"RDMA/bnxt_re: Fix out of bound check","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/bnxt_re: Fix out of bound check\n\nDriver exports pacing stats only on GenP5 and P7 adapters. But while\nparsing the pacing stats, driver has a check for \"rdev->dbr_pacing\".  This\ncaused a trace when KASAN is enabled.\n\nBUG: KASAN: slab-out-of-bounds in bnxt_re_get_hw_stats+0x2b6a/0x2e00 [bnxt_re]\nWrite of size 8 at addr ffff8885942a6340 by task modprobe/4809"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"05c5fcc1869a08e36a29691699b6534e5a00a82b","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"c11b9b03ea5252898f91f3388c248f0dc47bda52","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","status":"affected","lessThan":"a9e6e7443922ac0a48243c35d03834c96926bff1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.59","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.6","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/bnxt_re/hw_counters.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/05c5fcc1869a08e36a29691699b6534e5a00a82b"},{"url":"https://git.kernel.org/stable/c/c11b9b03ea5252898f91f3388c248f0dc47bda52"},{"url":"https://git.kernel.org/stable/c/a9e6e7443922ac0a48243c35d03834c96926bff1"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable `bnxt_re_ib_get_hw_stats()` is reached only by local readers of the RDMA stats interface — a world-readable `/sys/class/infiniband/<dev>/ports/N/hw_counters/*` file or an `RDMA_NLDEV_CMD_STAT_GET` netlink request. No remote peer, packet, or RoCE traffic can drive this path.\nAC:L - On an affected adapter the out-of-bounds write happens deterministically on every stats refresh — a single `cat` of a sysfs counter or one netlink message triggers it, with no race, timing window, or memory-layout condition outside the attacker's control.\nPR:L - The `hw_counters` sysfs attributes are created with mode 0444 and `RDMA_NLDEV_CMD_STAT_GET` is registered without `RDMA_NL_ADMIN_PERM` on a `NL_CFG_F_NONROOT_RECV` socket, so any unprivileged local user can invoke the path repeatedly; only local account access is needed.\nUI:N - The attacker triggers the stats read entirely on their own by reading sysfs or sending a netlink message; no victim action is involved, and the bug also fires automatically at driver load.\nS:U - The corruption is confined to the kernel's own slab heap within the same security authority — no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a heap out-of-bounds write past a `kzalloc`'d `struct rdma_hw_stats`; such slab corruption is treated as leverageable for disclosure of adjacent kernel data, and the higher rating is chosen given the uncertainty in overflow landing.\nI:H - Four 8-byte writes land 160–191 bytes beyond the end of the 68-element `value[]` array, including a value sourced from an MMIO register — an out-of-bounds heap write, which is rated High.\nA:H - The slab-out-of-bounds write produces a KASAN BUG (as reported in the fix commit) and traps under bounds sanitization, panicking on `panic_on_warn`/UBSAN-trap kernels, and heap corruption can crash the system; an unprivileged user can retrigger it indefinitely via netlink."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:42:08.178Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.11.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50158","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-10-01T20:20:30.755793Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","type":"CWE","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:27:12.642Z"}}]}}}