What’s Vulnerable › Vulnerabilities

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

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

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

Get alerted when CVE-2024-50120 or the next vulnerability affects your stack