{"id":"CVE-2022-48985","published":"2024-10-21T20:06:01Z","modified":"2026-08-05T08:53:15Z","title":"net: mana: Fix race on per-CQ variable napi work_done","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mana: Fix race on per-CQ variable napi work_done\n\nAfter calling napi_complete_done(), the NAPIF_STATE_SCHED bit may be\ncleared, and another CPU can start napi thread and access per-CQ variable,\ncq->work_done. If the other thread (for example, from busy_poll) sets\nit to a value >= budget, this thread will continue to run when it should\nstop, and cause memory corruption and panic.\n\nTo fix this issue, save the per-CQ work_done variable in a local variable\nbefore napi_complete_done(), so it won't be corrupted by a possible\nconcurrent thread after napi_complete_done().\n\nAlso, add a flag bit to advertise to the NIC firmware: the NAPI work_done\nvariable race is fixed, so the driver is able to reliably support features\nlike busy_poll.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0059,"percentile":0.49142,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/fe50a9bbeb1f042e756c5cfa7708112c944368de","tags":[]},{"url":"https://git.kernel.org/stable/c/6740d8572ccd1bca50d8a1ca2bedc333f50ed5f3","tags":[]},{"url":"https://git.kernel.org/stable/c/18010ff776fa42340efc428b3ea6d19b3e7c7b21","tags":[]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":9.83},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e1b5683ff62e7b328317aec08869495992053e9d, < fe50a9bbeb1f042e756c5cfa7708112c944368de",">= e1b5683ff62e7b328317aec08869495992053e9d, < 6740d8572ccd1bca50d8a1ca2bedc333f50ed5f3",">= e1b5683ff62e7b328317aec08869495992053e9d, < 18010ff776fa42340efc428b3ea6d19b3e7c7b21"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:17:20.394145Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53864","exploited":false,"provenance":"source"}}