
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-54218 is a data race (load-tearing) vulnerability in the Linux kernel's networking subsystem, specifically in the sock_recv_cmsgs() function. The flaw involves a missing READ_ONCE() annotation on the read access to sk->sk_stamp, which was detected by KCSAN (Kernel Concurrency Sanitizer) as a data race in packet_recvmsg. It affects the Linux kernel across multiple stable branches, with fixes applied to several stable trees. The CVSS category is estimated as Medium, with an EPSS score of 0.000240 (Feedly, VulDB).
The root cause is a concurrent read/write data race (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization) on the sk->sk_stamp field within sock_recv_cmsgs() in include/net/sock.h. One task performs a marked write via sock_write_timestamp() while another task concurrently reads the same memory location without the required READ_ONCE() macro, allowing the compiler or CPU to tear the 8-byte load across multiple accesses. The race manifests in the packet_recvmsg code path (net/packet/af_packet.c:3489) and is triggered when two tasks simultaneously call packet_recvmsg on the same socket. The fix adds READ_ONCE() to the read access to prevent load-tearing (Feedly).
Exploitation of this data race could lead to undefined behavior due to torn reads of the sk_stamp timestamp field, potentially resulting in incorrect timestamp values being returned to userspace applications or kernel instability. The primary impact is on availability and integrity of socket timestamp data; confidentiality impact is limited. In the worst case, the race condition could contribute to kernel memory corruption or information disclosure, though practical exploitation for privilege escalation has not been demonstrated (Feedly, VulDB).
The fix has been applied to multiple Linux kernel stable branches via patches to include/net/sock.h, adding READ_ONCE() to the sk->sk_stamp read in sock_recv_cmsgs(). Affected users should update to a patched kernel version corresponding to their stable branch (patches available at kernel.org stable commits: 564c3150, 7145f230, 83192200, d06f67b2, d7343f8d). Linux distribution vendors (e.g., Red Hat) are expected to backport this fix into their supported kernel packages; users should apply the latest kernel updates from their distribution (Feedly, Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."