CVE-2024-50120

smb: client: Handle kstrdup failures for passwords

MEDIUM
5.5
CVSS Score
Published: November 5, 2024 at 05:10 PM UTC
Updated: June 17, 2026 at 08:03 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.7.12v ≥ 6.8.36.6.24 ≤ v < 6.6.596.7.12 ≤ v < 6.86.8.3 ≤ v < 6.11.66.8.3 ≤ v < 6.96.9 ≤ v < 6.122a0fc63f1f4fccfeb367d0c57b8a243cec60c26c6.12 rc16.12 rc26.12 rc36.12 rc46.6.246.7.126.8.37e8cffa4f85e6839335d75e6b47f918d90c1d194c1eb537bf4560b3ad4df606c266c665624f3b502e78308a6dcab1e53b38b8dd952e69c515cd324d7
Vendor states this is fixed in 35488799b0ab6e4327f82e1d9209a60805665b37 (fixed)
Vendor states this is fixed in 35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 (fixed)
Vendor states this is fixed in 9a5dd61151399ad5a5d69aad28ab164734c1e3bc (fixed)
Vendor states this is fixed in 6.11.6 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.59 (unaffected)
Affected range stops below 6.8, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card