CVE-2024-50120
smb: client: Handle kstrdup failures for passwords
Check your servers for CVE-2024-50120
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-50120 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7e8cffa4f85e6839335d75e6b47f918d90c1d194, before 35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 affected from c1eb537bf4560b3ad4df606c266c665624f3b502, before 35488799b0ab6e4327f82e1d9209a60805665b37 affected from c1eb537bf4560b3ad4df606c266c665624f3b502, before 9a5dd61151399ad5a5d69aad28ab164734c1e3bc affected e78308a6dcab1e53b38b8dd952e69c515cd324d7 affected 2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c affected from 6.6.24, before 6.6.59 affected from 6.7.12, before 6.8 affected from 6.8.3, before 6.9
Other versions: unaffected
|
| Linux |
affected 6.9 unaffected before 6.9 unaffected from 6.6.59 up to and including 6.6.* unaffected from 6.11.6 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-50120 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50120
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-50120
trivy image --scanners vuln IMAGE | grep CVE-2024-50120
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8 git.kernel.org
- https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37 git.kernel.org
- https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc git.kernel.org
Source: the record CVE-2024-50120 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse