CVE-2024-50120 Details
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: Handle kstrdup failures for passwords In smb3_reconfigure(), after duplicating ctx->password and ctx->password2 with kstrdup(), we need to check for allocation failures. If ses->password allocation fails, return -ENOMEM. If ses->password2 allocation fails, free ses->password, set it to NULL, and return -ENOMEM.
A vulnerability has been identified in the Linux kernel's SMB client component, specifically within the password handling process. In the function 'smb3_reconfigure()', after duplicating password values with 'kstrdup()', the code fails to properly check for memory allocation errors. This oversight can lead to incorrect password management during operations such as remounting CIFS file systems. The issue affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that resolves this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37 | kernel.org | Patch |
| https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.6.24, < 6.6.59 >= 6.7.12, < 6.8 >= 6.8.3, < 6.11.6 6.12 rc1 6.12 rc2 6.12 rc3 6.12 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Apr 6, 2026 | Modified Analysis | [email protected] |
| Jan 30, 2026 | Modified Analysis | [email protected] |
| Nov 8, 2024 | Initial Analysis | [email protected] |
| Nov 5, 2024 | New CVE Received | kernel.org |