
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49938 affects the Linux kernel's CIFS (Common Internet File System) implementation. The vulnerability involves a memory pool leak in the SMB2negotiate() function that occurs during dialect mismatches. After sending a request, the checks would return -EIO instead of properly setting rc = -EIO and jumping to negexit to free the response buffer from the memory pool (NVD, Wiz).
The vulnerability is specifically located in the SMB2negotiate() function of the CIFS implementation. In cases of failure (dialect mismatches) in SMB2negotiate(), after the request is sent, the checks would return -EIO when they should be rather setting rc = -EIO and jumping to neg_exit to free the response buffer from the memory pool. This improper error handling leads to a memory leak in the kernel space (NVD, Wiz).
The vulnerability results in a memory leak in the kernel's CIFS implementation. While memory leaks in kernel space can potentially lead to resource exhaustion over time, this particular issue appears to be limited to specific error conditions during SMB2 protocol negotiation (Wiz).
The vulnerability has been resolved in the Linux kernel through a patch that corrects the error handling in the SMB2negotiate() function. The fix ensures proper memory cleanup by setting rc = -EIO and jumping to negexit to free the response buffer when dialect mismatches occur (Wiz).
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."