CVE-2022-48941

published 22 Aug 2024 · updated 17 Nov 2026

ice: fix concurrent reset and removal of VFs

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fadead80fe4c033b5e514fcbadd20b55c4494112, Kernel 5.14, Kernel 2a3e61de89bab6696aa28b70030eb119968c5586 and 3 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=c503e63200c679e362afca7aca9d3dc63a0f45ed <fadead80fe4c033b5e514fcbadd20b55c4494112, >=5.13.12 <5.14, >=c503e63200c679e362afca7aca9d3dc63a0f45ed <2a3e61de89bab6696aa28b70030eb119968c5586, >=c503e63200c679e362afca7aca9d3dc63a0f45ed <3c805fce07c9dbc47d8a9129c7c5458025951957, =5.14, =8a08142433624fd1088bc8c13639408cf4e1707cfadead80fe4c033b5e514fcbadd20b55c4494112, 5.14, 2a3e61de89bab6696aa28b70030eb119968c5586, 3c805fce07c9dbc47d8a9129c7c5458025951957
linux-kernel: Kernel>=5.14.0 <5.15.26, >=5.16.0 <5.16.12, >=5.13.12 <5.145.15.26, 5.16.12, 5.14

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-48941 severity on Zeptric[![CVE-2022-48941](https://zeptric.io/badge/cve/CVE-2022-48941.svg)](https://zeptric.io/cve/CVE-2022-48941)