smb: client: Handle kstrdup failures for passwords
Summary
| CVE | CVE-2024-50120 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-11-05 18:15:15 UTC |
| Updated | 2026-04-06 14:01:16 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: NVD-CWE-noinfo
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 7e8cffa4f85e6839335d75e6b47f918d90c1d194 35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 git | Not specified |
| CNA | Linux | Linux | affected c1eb537bf4560b3ad4df606c266c665624f3b502 35488799b0ab6e4327f82e1d9209a60805665b37 git | Not specified |
| CNA | Linux | Linux | affected c1eb537bf4560b3ad4df606c266c665624f3b502 9a5dd61151399ad5a5d69aad28ab164734c1e3bc git | Not specified |
| CNA | Linux | Linux | affected e78308a6dcab1e53b38b8dd952e69c515cd324d7 git | Not specified |
| CNA | Linux | Linux | affected 2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c git | Not specified |
| CNA | Linux | Linux | affected 6.9 | Not specified |
| CNA | Linux | Linux | unaffected 6.9 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.59 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.11.6 6.11.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.