CVE-2024-50120

Source
https://cve.org/CVERecord?id=CVE-2024-50120
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50120.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-50120
Downstream
AZL (1)
BELL (1)
DEBIAN (1)
MGASA (2)
OESA (1)
openSUSE (2)
RHSA (1)
UBUNTU (1)
Related
Published
2024-11-05T17:10:49Z
Modified
2026-11-17T07:00:51Z
Summary
smb: client: Handle kstrdup failures for passwords
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50120.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7e8cffa4f85e6839335d75e6b47f918d90c1d194
Fixed
35dbac8c328d6afe937cd45ecd41d209d0b9f8b8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c1eb537bf4560b3ad4df606c266c665624f3b502
Fixed
35488799b0ab6e4327f82e1d9209a60805665b37
Fixed
9a5dd61151399ad5a5d69aad28ab164734c1e3bc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e78308a6dcab1e53b38b8dd952e69c515cd324d7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c

Affected versions

v6.*
v6.6.24
v6.6.25
v6.6.26
v6.6.27
v6.6.28
v6.6.29
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.6.35
v6.6.36
v6.6.37
v6.6.38
v6.6.39
v6.6.40
v6.6.41
v6.6.42
v6.6.43
v6.6.44
v6.6.45
v6.6.46
v6.6.47
v6.6.48
v6.6.49
v6.6.50
v6.6.51
v6.6.52
v6.6.53
v6.6.54
v6.6.55
v6.6.56
v6.6.57
v6.6.58
v6.7.12
v6.8.10
v6.8.11
v6.8.12
v6.8.3
v6.8.4
v6.8.5
v6.8.6
v6.8.7
v6.8.8
v6.8.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50120.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.24
Fixed
6.6.59
Type
ECOSYSTEM
Events
Introduced
6.7.12
Fixed
6.8
Type
ECOSYSTEM
Events
Introduced
6.8.3
Fixed
6.9
Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.11.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50120.json"