CVE-2024-44933
published high CVSS 3.1 · 7.3bnxt_en : Fix memory out-of-bounds in bnxt_fill_hw_rss_tbl()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbc57f879a420d19bb5ecdb480f858371554f2258 to < abd573e9ad2ba64eaa6418a5f4eec819de28f205 · 98ba1d931f611e8f8f519c0405fa0a1a76554bfa to < da03f5d1b2c319a2b74fe76edeadcd8fa5f44376 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10.4 to < 6.10.5 · Other versions: unaffected | Affected | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: bnxt_en : Fix memory out-of-bounds in bnxt_fill_hw_rss_tbl() A recent commit has modified the code in __bnxt_reserve_rings() to set the default RSS indirection table to default only when the number of RX rings is changing. While this works for newer firmware that requires RX ring reservations, it causes the regression on older firmware not requiring RX ring resrvations (BNXT_NEW_RM() returns false). With older firmware, RX ring reservations are not required and so hw_resc->resv_rx_rings is not always set to the proper value. The comparison: if (old_rx_rings != bp->hw_resc.resv_rx_rings) in __bnxt_reserve_rings() may be false even when the RX rings are changing. This will cause __bnxt_reserve_rings() to skip setting the default RSS indirection table to default to match the current number of RX rings. This may later cause bnxt_fill_hw_rss_tbl() to use an out-of-range index. We already have bnxt_check_rss_tbl_no_rmgr() to handle exactly this scenario. We just need to move it up in bnxt_need_reserve_rings() to be called unconditionally when using older firmware. Without the fix, if the TX rings are changing, we'll skip the bnxt_check_rss_tbl_no_rmgr() call and __bnxt_reserve_rings() may also skip the bnxt_set_dflt_rss_indir_tbl() call for the reason explained in the last paragraph. Without setting the default RSS indirection table to default, it causes the regression: BUG: KASAN: slab-out-of-bounds in __bnxt_hwrm_vnic_set_rss+0xb79/0xe40 Read of size 2 at addr ffff8881c5809618 by task ethtool/31525 Call Trace: __bnxt_hwrm_vnic_set_rss+0xb79/0xe40 bnxt_hwrm_vnic_rss_cfg_p5+0xf7/0x460 __bnxt_setup_vnic_p5+0x12e/0x270 __bnxt_open_nic+0x2262/0x2f30 bnxt_open_nic+0x5d/0xf0 ethnl_set_channels+0x5d4/0xb30 ethnl_default_set_doit+0x2f1/0x620
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Scenarios
- en: AV:L - The only trigger is a local `ethtool -L`/set-channels request delivered over an `AF_NETLINK` genetlink socket or the `SIOCETHTOOL` ioctl; no remote peer data reaches `bnxt_need_reserve_rings()`/`bnxt_fill_hw_rss_tbl_p5()`. AC:L - The attacker deterministically creates every precondition by simply reducing the channel count from a higher value (`ethtool -L ethX combined 1`), which changes TX rings and thus takes the early `return true` that skips `bnxt_check_rss_tbl_no_rmgr()`; the stale default table then indexes `bp->rx_ring[]` out of range on the very next `bnxt_open_nic()`. No race, no memory-layout luck, and the attacker also chooses the overread distance by picking the starting and ending ring counts. PR:L - Both entry points gate only on `CAP_NET_ADMIN` evaluated against the netns owner's user namespace (`GENL_UNS_ADMIN_PERM`/`ns_capable(net->user_ns, ...)`), not real root; a bnxt VF handed to a container or pod netns is administered by an otherwise unprivileged principal who holds that capability locally. UI:N - The attacker issues the channel-count change from its own process and the out-of-bounds access happens synchronously in that syscall; no victim action or cooperation is involved. S:U - The overread and the resulting misprogramming occur entirely within the kernel's own security authority on the same PCI function; no VM, IOMMU, or sandbox boundary is crossed. C:H - `rxr = &bp->rx_ring[j]` with `j` up to the previous ring count reads `fw_ring_id` at attacker-selected offsets tens of kilobytes beyond a `kcalloc()`ed array — far more than a strictly bounded few-byte overread — and the harvested kernel heap words are programmed into the hardware RSS table, whose steering effect is observable through per-ring `ethtool -S` counters, yielding an oracle on adjacent kernel memory. I:L - There is no out-of-bounds write, but the values scavenged from unrelated kernel memory are committed to the NIC via `HWRM_VNIC_RSS_CFG`, corrupting the device's RX steering configuration with ring IDs neither the kernel nor the administrator intended. A:H - The read runs ~75 KB past a small slab object, producing a KASAN slab-out-of-bounds report (panic under `panic_on_warn`/KASAN panic) and a plausible page-fault oops on unmapped memory; even when it survives, the bogus ring IDs make `HWRM_VNIC_RSS_CFG` fail and `__bnxt_open_nic()` abort, leaving the interface down, and the sequence is cheap and repeatable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bc57f879a420d19bb5ecdb480f858371554f2258 to < abd573e9ad2ba64eaa6418a5f4eec819de28f205 (affected · git)98ba1d931f611e8f8f519c0405fa0a1a76554bfa to < da03f5d1b2c319a2b74fe76edeadcd8fa5f44376 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10.4 to < 6.10.5 (affected · semver)Default: unaffected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
2Linux · cna
bnxt_en : Fix memory out-of-bounds in bnxt_fill_hw_rss_tbl()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ee662b1b39a1a0e0e9b8679ede1359bedf166d6d866f936a2e2c7e538c329bd5
- Ingested
- 23 Sep 2026, 08:27:32 UTC
- Source record
- Official CVE record