CVE-2022-48985

Source
https://cve.org/CVERecord?id=CVE-2022-48985
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48985.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48985
Downstream
Related
Published
2024-10-21T20:06:01.802Z
Modified
2026-03-12T03:24:23.281834Z
Summary
net: mana: Fix race on per-CQ variable napi work_done
Details

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

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

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 napicomplete_done().

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48985.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e1b5683ff62e7b328317aec08869495992053e9d
Fixed
fe50a9bbeb1f042e756c5cfa7708112c944368de
Fixed
6740d8572ccd1bca50d8a1ca2bedc333f50ed5f3
Fixed
18010ff776fa42340efc428b3ea6d19b3e7c7b21

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48985.json"