Skip to main content
← All vulnerabilities
CVE-2024-50120

smb: client: Handle kstrdup failures for passwords

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.6.59, 6.8, 6.9
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.6.24 · fixed in 6.6.59; From 6.7.12 · fixed in 6.8; From 6.8.3 · fixed in 6.9

  • Linux Linux

    6.9

References 3

git.kernel.org