Fixing a Slab-Use-After-Free Vulnerability in ksmbd
CVE-2024-50283
Key facts: CVE-2024-50283 is a critical severity (CVSS 9.8) vulnerability in Linux. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.8%, the estimated probability of exploitation in the next 30 days. Fixed in Linux 1b6ad475d4ed577d34e0157eb507be00c588bf5c.
What is CVE-2024-50283?
CVE-2024-50283 is a vulnerability identified in the ksmbd component of the Linux kernel, which is involved in providing server message block (SMB) protocol services. This protocol allows for file sharing, printer sharing, and network communication between different systems. The vulnerability presents a slab-use-after-free issue, which can occur when a software component continues to use a memory allocation that has been freed, potentially leading to unpredictable behavior or system crashes. If exploited, this vulnerability could have serious repercussions for organizations by compromising the security and stability of their Linux-based systems.
Technical Details
The vulnerability arises from the improper handling of user session memory during the execution of the smb3_preauth_hash_rsp() function. Specifically, the ksmbd_user_session_put function must be invoked within smb3_preauth_hash_rsp() to prevent the premature freeing of user session objects. Failure to enforce this sequence could allow an attacker to exploit the race conditions associated with memory management, potentially leading to memory corruption or other security issues.
Potential Impact of CVE-2024-50283
-
Security Risks: The vulnerability could be exploited to execute arbitrary code or escalate privileges, enabling attackers to manipulate affected systems or gain unauthorized access to sensitive data.
-
System Stability: Exploitation may result in unexpected crashes or behavior, disrupting critical services that rely on the ksmbd component and leading to potential downtime for managed services.
-
Data Integrity: If attackers can manipulate the system's memory management, they may be able to corrupt data or disrupt normal file-sharing operations, leading to data loss or compromised integrity of shared resources.
Affected Version(s)
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf
References
More Linux vulnerabilities
- CVE-2026-99676: Linux Kernel Vulnerability in Refcount Management and Lockless Socket Access(CRITICAL)
- CVE-2026-99582: Linux Kernel Vulnerability in SCTP Control Chunk Migration(HIGH)
- CVE-2026-99370: Buffer Overflow Vulnerability in Linux Kernel NFSD Product by Linux Foundation(CRITICAL)
- CVE-2026-99362: Buffer Overflow Vulnerability in Linux Kernel NFS(CRITICAL)
- CVE-2026-99312: Memory Management Unit Vulnerability in Linux Kernel Affecting KVM(HIGH)
- CVE-2026-99304: Integer Overflow Vulnerability in Ceph Component of Linux Kernel(CRITICAL)
- CVE-2026-99288: Memory Reuse Vulnerability in Linux Kernel TCP Established Lookups(HIGH)
- CVE-2026-99270: Memory Management Issues in Linux Kernel TCP Socket Migration(HIGH)