PT-2024-11850 · Linux+3 · Linux Kernel+3

Haiyang Zhang

·

Published

2022-12-06

·

Updated

2025-02-11

·

CVE-2022-48985

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to a race condition on the per-CQ variable napi work done in the Linux kernel's net component. After calling napi complete done(), another CPU can start the napi thread and access the cq->work done variable, potentially causing memory corruption and panic if the value is set to >= budget. The estimated number of potentially affected devices worldwide is not available. There is no information about real-world incidents where this issue was exploited.
Technical details about exploitation include:
  • The napi complete done() function is involved in the issue.
  • The cq->work done variable is accessed by multiple threads, leading to a race condition.
  • The busy poll feature can trigger the issue.
Recommendations To fix this issue, save the per-CQ work done variable in a local variable before napi complete done(), so it won't be corrupted by a possible concurrent thread after napi complete done(). Also, add a flag bit to advertise to the NIC firmware: the NAPI work done variable race is fixed, so the driver is able to reliably support features like busy poll. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-01710
CVE-2022-48985
OPENSUSE-SU-2024_3983-1
OPENSUSE-SU-2024_3985-1
OPENSUSE-SU-2024_4131-1
OPENSUSE-SU-2024_4313-1
SUSE-SU-2024:3983-1
SUSE-SU-2024:3985-1
SUSE-SU-2024:4082-1
SUSE-SU-2024:4100-1
SUSE-SU-2024:4131-1
SUSE-SU-2024:4313-1
SUSE-SU-2024:4317-1
SUSE-SU-2024:4364-1
SUSE-SU-2024_4313-1
SUSE-SU-2025:0034-1

Affected Products

Astra Linux
Linux Kernel
Red Os
Suse