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

VectorAV: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

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-15245
ALT-PU-2024-17211
ALT-PU-2025-12647
AZL-52511
BDU:2025-03360
CVE-2024-50120
INFSA-2025_6966
MGASA-2024-0368
MGASA-2024-0369
OESA-2024-2423
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2025:14705-1
RHSA-2025:6966
RHSA-2025_6966
USN-7276-1
USN-7277-1
USN-7310-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7468-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Linuxmint
Linux Kernel
Red Hat
Red Os
Ubuntu