PT-2025-8143 · Linux+4 · Linux Kernel+4
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 5.16.0+
Description
A race condition in the xsk socket teardown code can lead to a NULL pointer dereference. The issue arises when the
xsk unbind dev() function sets xs->state to XSK UNBOUND and xs->dev to NULL before waiting for NAPI processing to terminate, which can cause a crash if another process is still using the socket. The problem is solved by removing the NULL assignment to xs->dev and extending the RCU critical region to cover the entire xsk poll(), xsk sendmsg(), and xsk recvmsg() functions.Recommendations
For Linux kernel version 5.16.0+, update to a version that includes the fix for the xsk socket teardown code.
For earlier versions, consider applying the patch that removes the
NULL assignment to xs->dev and extends the RCU critical region to cover the entire xsk poll(), xsk sendmsg(), and xsk recvmsg() functions as a temporary workaround.Exploit
Fix
DoS
NULL Pointer Dereference
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Debian
Linux Kernel
Red Hat
Suse