Impact
The vulnerability arises from an incorrect calculation of the available buffer space in the ksmbd Kerberos authentication routine. When an SMB2_SESSION_SETUP message is processed as part of a compound SMB2 request, the calculation of out_len omits the offset of the next response header, causing the length check to pass incorrectly. As a result, a memcpy writes the Kerberos AP-REP blob past the end of response_buf, corrupting adjacent kernel heap memory. This out‑of‑bounds heap write can overwrite critical kernel data structures, potentially enabling an attacker to execute arbitrary code with kernel privileges.
Affected Systems
All Linux distributions that ship the standard Linux kernel with the ksmbd SMB daemon enabled are affected. This includes any system running a generic Linux kernel that includes ksmbd.
Risk and Exploitability
With a CVSS score of 8.8, the vulnerability is classified as high severity, reflecting the risk of kernel memory corruption. The EPSS score is less than 1% (approximately 0.4%), indicating a very low but nonzero probability of exploitation in the wild. The vulnerability is not yet listed in the CISA KEV catalog. Based on the description, it is inferred that a remote attacker can send a crafted SMB2 compound request to a vulnerable host without requiring authentication or elevated privileges. Given the nature of the out‑of‑bounds write and the remote access vector, organizations running exposed SMB services should consider this a significant risk.
OpenCVE Enrichment