What’s Vulnerable › Vulnerabilities
CVE-2024-50120: smb: client: Handle kstrdup failures for passwords
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-05 · updated 2026-06-17
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 products
- Linux kernel: from 6.6.24 before 6.6.59; from 6.7.12 before 6.8; from 6.8.3 before 6.11.6; 6.12-rc1, 6.12-rc2, 6.12-rc3, 6.12-rc4 — fixed in 6.11.6, 6.6.59, 6.8
How to fix
Upgrade to a fixed version: Linux kernel 6.11.6, 6.6.59, 6.8. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37
- https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8
- https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc
Get alerted when CVE-2024-50120 or the next vulnerability affects your stack