{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50158","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-10-21T19:36:19.961Z","datePublished":"2024-11-07T09:31:35.264Z","dateUpdated":"2026-08-05T11:42:08.178Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:42:08.178Z"},"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"}],"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."}]}],"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/hw_counters.c"],"versions":[{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","lessThan":"05c5fcc1869a08e36a29691699b6534e5a00a82b","status":"affected","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","lessThan":"c11b9b03ea5252898f91f3388c248f0dc47bda52","status":"affected","versionType":"git"},{"version":"8b6573ff3420a2da1deb469a480dbc454745f784","lessThan":"a9e6e7443922ac0a48243c35d03834c96926bff1","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/hw_counters.c"],"versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.59","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.6","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","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":"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"}]}]}],"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"}],"title":"RDMA/bnxt_re: Fix out of bound check","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"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":[{"lang":"en","type":"CWE","cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read"}]}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-10-01T20:27:12.642Z"}}]}}