# CVE-2024-50042: ice: Fix increasing MSI-X on VF

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2024-10-21T19:39:41.084Z
- **Modified:** 2026-06-17T08:03:26.690Z

## Who should check

- Anyone running Linux \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< cbda6197929418fabf0e45ecf9b7a76360944c70; \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< bce9af1b030bf59d51bbabf909a3ef164787e44e; 8910b1cef190545085e9bb486f35dd30ad928a05; \>= 6.7.10, \< 6.8
- Anyone running Linux 6.8

## Description

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.

## Affected and fixed versions

- Linux: \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< cbda6197929418fabf0e45ecf9b7a76360944c70; \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< bce9af1b030bf59d51bbabf909a3ef164787e44e; 8910b1cef190545085e9bb486f35dd30ad928a05; \>= 6.7.10, \< 6.8 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50042. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50042.md
Affected: Linux >= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, < cbda6197929418fabf0e45ecf9b7a76360944c70; >= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, < bce9af1b030bf59d51bbabf909a3ef164787e44e; 8910b1cef190545085e9bb486f35dd30ad928a05; >= 6.7.10, < 6.8; Linux 6.8
Fixed in: Linux 6.8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50042 being exploited?

There is no confirmed exploitation: CVE-2024-50042 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-50042?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50042?

Linux \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< cbda6197929418fabf0e45ecf9b7a76360944c70; \>= 2a2cb4c6c18130e9f14d2e39deb75590744d98ef, \< bce9af1b030bf59d51bbabf909a3ef164787e44e; 8910b1cef190545085e9bb486f35dd30ad928a05; \>= 6.7.10, \< 6.8; Linux 6.8.

### Is there a fix for CVE-2024-50042?

Yes. Fixed in Linux 6.8. Upgrade Linux to 6.8 or later.

### How do I check if I'm affected by CVE-2024-50042?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/cbda6197929418fabf0e45ecf9b7a76360944c70>
- patch: <https://git.kernel.org/stable/c/bce9af1b030bf59d51bbabf909a3ef164787e44e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50042>

HTML: <https://flawdb.com/CVE-2024-50042> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50042>
