CVE-2023-6531
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-6531 is a use-after-free vulnerability discovered in the Linux Kernel, specifically related to a race condition in the unix garbage collector's deletion of SKB (Socket Buffer) that races with unix_stream_read_generic() on the socket that the SKB is queued on. The vulnerability was first reported on December 5, 2023, and affects Linux Kernel versions up to (excluding) 6.7 (NVD).

Technical details

The vulnerability stems from a race condition where unix_stream_read_generic() assumes that mutex_lock(&u->iolock) protects sk->sk_receive_queue against element removal, so it holds a pointer to an SKB on the sk->sk_receive_queue without any other protection, while scan_inflight() only takes spin_lock(&x->sk_receive_queue.lock) when stealing SKBs from the sk_receive_queue. The issue has been assigned a CVSS v3.1 base score of 7.0 (HIGH) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (Red Hat).

Impact

The vulnerability could allow a local attacker to cause a denial of service (system crash) or potentially execute arbitrary code on the affected system. The high severity rating indicates significant potential impact on the confidentiality, integrity, and availability of the system (Ubuntu).

Mitigation and workarounds

The vulnerability has been fixed in Linux Kernel 6.7-rc5 through a patch that completely disables sending io_uring files via sockets using SCM_RIGHT. This prevents possible cycles involving registered files and eliminates the need for SCM accounting on the io_uring side. Various Linux distributions have released security updates to address this vulnerability, including Red Hat Enterprise Linux 9 through RHSA-2024:2394 (Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-core
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management