CVE-2022-48941

ice: fix concurrent reset and removal of VFs

MEDIUM
4.7
CVSS Score
Published: August 22, 2024 at 03:31 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ice: fix concurrent reset and removal of VFs Commit c503e63200c6 ("ice: Stop processing VF messages during teardown") introduced a driver state flag, ICE_VF_DEINIT_IN_PROGRESS, which is intended to prevent some issues with concurrently handling messages from VFs while tearing down the VFs. This change was motivated by crashes caused while tearing down and bringing up VFs in rapid succession. It turns out that the fix actually introduces issues with the VF driver caused because the PF no longer responds to any messages sent by the VF during its .remove routine. This results in the VF potentially removing its DMA memory before the PF has shut down the device queues. Additionally, the fix doesn't actually resolve concurrency issues within the ice driver. It is possible for a VF to initiate a reset just prior to the ice driver removing VFs. This can result in the remove task concurrently operating while the VF is being reset. This results in similar memory corruption and panics purportedly fixed by that commit. Fix this concurrency at its root by protecting both the reset and removal flows using the existing VF cfg_lock. This ensures that we cannot remove the VF while any outstanding critical tasks such as a virtchnl message or a reset are occurring. This locking change also fixes the root cause originally fixed by commit c503e63200c6 ("ice: Stop processing VF messages during teardown"), so we can simply revert it. Note that I kept these two changes together because simply reverting the original commit alone would leave the driver vulnerable to worse race conditions.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.13.12v < 5.10.1045.11 ≤ v < 5.15.265.13.12 ≤ v < 5.145.14 ≤ v < 5.15.265.14 ≤ v < 5.16.125.14 ≤ v < 5.175.16 ≤ v < 5.16.125.13.125.148a08142433624fd1088bc8c13639408cf4e1707cc503e63200c679e362afca7aca9d3dc63a0f45ed
Vendor states this is fixed in 2a3e61de89bab6696aa28b70030eb119968c5586 (fixed)
Vendor states this is fixed in 3c805fce07c9dbc47d8a9129c7c5458025951957 (fixed)
Vendor states this is fixed in fadead80fe4c033b5e514fcbadd20b55c4494112 (fixed)
Affected range stops below 5.10.104, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.26 (unaffected)
Vendor states this is fixed in 5.16.12 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a3e61de89bab6696aa28b70030eb119968c5586
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3c805fce07c9dbc47d8a9129c7c5458025951957
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fadead80fe4c033b5e514fcbadd20b55c4494112

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card