CVE-2024-50120: smb: client: Handle kstrdup failures for passwords

Published Nov 5, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: client: Handle kstrdup failures for passwords

In smb3reconfigure(), 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.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

smb: client: Handle kstrdup failures for passwords

In smb3reconfigure(), 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.

NVD

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=6.6.24<6.6.59
Linux Linux kernel>=6.7.12<6.8
Linux Linux kernel>=6.8.3<6.9
Linux Linux kernel>=6.9<6.11.6
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
Linux Linux kernel=6.12-rc4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
Linux Linux kernel>=6.8.3<6.11.6

Event History

Nov 5, 2024
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
Description
Data Sourced
via Red Hat·06:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityAffected Software
Apr 29, 2025
Data Sourced
via Ubuntu·01:06 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50120?

CVE-2024-50120 is classified as a medium severity vulnerability due to potential memory allocation failures in the Linux kernel's SMB client.

2

How do I fix CVE-2024-50120?

Upgrading to versions of the Linux kernel that are not affected, specifically after the patches following version 6.12-rc4, can address CVE-2024-50120.

3

Which Linux kernel versions are affected by CVE-2024-50120?

Linux kernel versions from 6.6.24 to 6.6.59, as well as several versions between 6.7.12 to 6.8, and 6.9 to 6.11.6 are affected by CVE-2024-50120.

4

What impact does CVE-2024-50120 have on system security?

CVE-2024-50120 could potentially lead to denial of service due to unhandled memory allocation failures in the SMB client.

5

Is CVE-2024-50120 related to any specific component of the Linux kernel?

CVE-2024-50120 specifically affects the SMB client in the Linux kernel, particularly in the password handling mechanism.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203