PT-2024-33954 · Linux+5 · Linux Kernel+5
Published
2024-11-05
·
Updated
2025-10-03
·
CVE-2024-50120
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions:
Linux kernel versions prior to 6.6.61
Description:
A vulnerability in the Linux kernel has been resolved, related to the SMB client handling kstrdup failures for passwords. In the smb3 reconfigure function, after duplicating ctx->password and ctx->password2 with kstrdup, allocation failures need to be checked. If ses->password allocation fails, return -ENOMEM. If ses->password2 allocation fails, free ses->password, set it to NULL, and return -ENOMEM.
Recommendations:
For Linux kernel versions prior to 6.6.61, update to version 6.6.61 or later to resolve the issue. As a temporary workaround, consider restricting the use of the SMB client until a patch is available. Avoid using the
ctx->password and ctx->password2 variables in the affected smb3 reconfigure() function until the issue is resolved.Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Linuxmint
Linux Kernel
Red Hat
Red Os
Ubuntu