CVE-2022-48985: net: mana: Fix race on per-CQ variable napi work_done

Published Oct 21, 2024
·
Updated

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

net: mana: Fix race on per-CQ variable napi workdone

After calling napicompletedone(), the NAPIFSTATESCHED bit may be cleared, and another CPU can start napi thread and access per-CQ variable, cq->workdone. If the other thread (for example, from busypoll) sets it to a value >= budget, this thread will continue to run when it should stop, and cause memory corruption and panic.

To fix this issue, save the per-CQ workdone variable in a local variable before napicompletedone(), so it won't be corrupted by a possible concurrent thread after napicompletedone().

Also, add a flag bit to advertise to the NIC firmware: the NAPI workdone variable race is fixed, so the driver is able to reliably support features like busypoll.

Affected Software

10 affected components
Linux Linux kernel>=5.15<5.15.83
Linux Linux kernel>=5.16<6.0.13
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7
Linux Linux kernel=6.1-rc8

Event History

Oct 21, 2024
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverity
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-48985?

CVE-2022-48985 has been classified with a severity level that can impact system stability due to its race condition in the Linux kernel.

2

How do I fix CVE-2022-48985?

To fix CVE-2022-48985, users should update their Linux kernel to a version that includes the patches addressing this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2022-48985?

CVE-2022-48985 affects Linux kernel versions from 5.15 through 6.1-rc8.

4

What is the nature of the issue in CVE-2022-48985?

CVE-2022-48985 involves a race condition that can lead to the improper handling of per-CQ variable 'work_done' during NAPI operations.

5

Are there any exploitations known for CVE-2022-48985?

As of now, there are no publicly known exploitations of CVE-2022-48985, but the potential for race condition vulnerability poses a risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203