Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-50042 — kernel

🟠 CVSS 7.1 — High ✅ No Known Exploit NVD
7.1
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

ice: Fix increasing MSI-X on VF

In the Linux kernel, the following vulnerability has been resolved:

ice: Fix increasing MSI-X on VF

Increasing MSI-X value on a VF leads to invalid memory operations. This

is caused by not reallocating some arrays.

Reproducer:

modprobe ice

echo 0 > /sys/bus/pci/devices/$PF_PCI/sriov_drivers_autoprobe

echo 1 > /sys/bus/pci/devices/$PF_PCI/sriov_numvfs

echo 17 > /sys/bus/pci/devices/$VF0_PCI/sriov_vf_msix_count

Default MSI-X is 16, so 17 and above triggers this issue.

KASAN reports:

BUG: KASAN: slab-out-of-bounds in ice_vsi_alloc_ring_stats+0x38d/0x4b0 [ice]

Read of size 8 at addr ffff8888b937d180 by task bash/28433

(...)

Call Trace:

(...)

? ice_vsi_alloc_ring_stats+0x38d/0x4b0 [ice]

kasan_report+0xed/0x120

? ice_vsi_alloc_ring_stats+0x38d/0x4b0 [ice]

ice_vsi_alloc_ring_stats+0x38d/0x4b0 [ice]

ice_vsi_cfg_def+0x3360/0x4770 [ice]

? mutex_unlock+0x83/0xd0

? __pfx_ice_vsi_cfg_def+0x10/0x10 [ice]

? __pfx_ice_remove_vsi_lkup_fltr+0x10/0x10 [ice]

ice_vsi_cfg+0x7f/0x3b0 [ice]

ice_vf_reconfig_vsi+0x114/0x210 [ice]

ice_sriov_set_msix_vec_count+0x3d0/0x960 [ice]

sriov_vf_msix_count_store+0x21c/0x300

(...)

Allocated by task 28201:

(...)

ice_vsi_cfg_def+0x1c8e/0x4770 [ice]

ice_vsi_cfg+0x7f/0x3b0 [ice]

ice_vsi_setup+0x179/0xa30 [ice]

ice_sriov_configure+0xcaa/0x1520 [ice]

sriov_numvfs_store+0x212/0x390

(...)

To fix it, use ice_vsi_rebuild() instead of ice_vf_reconfig_vsi(). This

causes the required arrays to be reallocated taking the new queue count

into account (ice_vsi_realloc_stat_arrays()). Set req_txq and req_rxq

before ice_vsi_rebuild(), so that realloc uses the newly set queue

count.

Additionally, ice_vsi_rebuild() does not remove VSI filters

(ice_fltr_remove_all()), so ice_vf_init_host_cfg() is no longer

necessary.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2024-50042 is recorded against 2 packages.

  • kernel (from 6.8.0 up to 6.11.4)
  • linux-kernel

Timeline and source

Published on 21 October 2024 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2024-50042 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity High
CVSS Score 7.1
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-10-21
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.8.0 6.11.4
linux-kernel — —

Similar Threats

Site Security Check

Is kernel part of your stack?

CVE-2024-50042 is rated CVSS 7.1 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024
✓