PT-2025-18531 · Linux+2 · Linux Kernel+2
Published
2022-11-15
·
Updated
2025-07-16
·
CVE-2022-49814
CVSS v3.1
4.7
Medium
| Vector | AV: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
A race condition issue has been resolved in the Linux kernel related to KCM sockets. The
sk->sk receive queue is protected by the skb queue lock, but for KCM sockets, the RX path takes mux->rx lock to protect more than just the skb queue. However, kcm recvmsg() still only grabs the skb queue lock, leading to potential race conditions. To address this, the code has been modified to enforce the skb queue lock in requeue rx msgs() and handle the skb peek case carefully in kcm wait data(). The skb recv datagram() function is used to handle this case, and the unnecessary sock lock in kcm recvmsg() and kcm splice read() has been removed.Recommendations
To resolve the issue, update the Linux kernel to a version that includes the fix for the race condition in KCM sockets.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Linux Kernel
Suse