CVE-2022-48941
Last modified
CVE-2022-48941 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.10.104 |
| Linux | Linux Kernel | >= 5.11, < 5.15.26 |
| Linux | Linux Kernel | >= 5.16, < 5.16.12 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-48941?
How severe is CVE-2022-48941?
How do I fix CVE-2022-48941?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-48936Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2022-48937In the Linux kernel, the following vulnerability has been re…3.3
- CVE-2022-48938In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48939In the Linux kernel, the following vulnerability has been re…3.3
- CVE-2022-4894Certain HP and Samsung Printer software packages may potenti…7.3
- CVE-2022-48940In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48942In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48943In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2022-48944In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48945In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48946In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2022-48947In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2022-48941?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
