CVE-2024-50151
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-50151 is a vulnerability in the Linux kernel's SMB client implementation that was discovered in 2024. The issue occurs when using encryption (either server-enforced or when using the 'seal' mount option) where the client squashes all compound request buffers for encryption into a single iov in smb2setnext_command(). The vulnerability was disclosed on November 7, 2024, affecting multiple versions of the Linux kernel from 5.0 through 6.11.6 (NVD).

Technical details

The vulnerability is an out-of-bounds write issue in the SMB2ioctlinit() function. When processing SMB2IOCTL requests, the function allocates a small buffer (448 bytes) to hold the request in the first iov. If a user passes an input buffer greater than 328 bytes, smb2setnextcommand() writes beyond the end of rqst->iov[0].iov_base. This occurs specifically when encryption is enabled. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to out-of-bounds write operations in the kernel's memory space when processing SMB requests with encryption enabled. This could potentially result in privilege escalation, system crashes, or information disclosure on affected systems (NVD).

Mitigation and workarounds

The vulnerability has been fixed in multiple Linux kernel versions through patches that add buffer size validation before processing SMB2IOCTL requests. The fix includes checking for potential buffer overflow conditions when encryption is required and returning an error if the total length would exceed MAXCIFSSMALLBUFFER_SIZE. Users should update to patched kernel versions (Kernel Patch).

Additional resources


SourceThis report was generated using AI

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