{"id":"CVE-2024-50120","published":"2024-11-05T17:10:49Z","modified":"2026-05-23T15:54:32Z","title":"smb: client: Handle kstrdup failures for passwords","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: Handle kstrdup failures for passwords\n\nIn smb3_reconfigure(), after duplicating ctx->password and\nctx->password2 with kstrdup(), we need to check for allocation\nfailures.\n\nIf ses->password allocation fails, return -ENOMEM.\nIf ses->password2 allocation fails, free ses->password, set it\nto NULL, and return -ENOMEM.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00216,"percentile":0.11878,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8","tags":[]},{"url":"https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37","tags":[]},{"url":"https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc","tags":[]}],"priority":{"score":2.4,"factors":[{"name":"EPSS percentile","points":2.38}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7e8cffa4f85e6839335d75e6b47f918d90c1d194, < 35dbac8c328d6afe937cd45ecd41d209d0b9f8b8",">= c1eb537bf4560b3ad4df606c266c665624f3b502, < 35488799b0ab6e4327f82e1d9209a60805665b37",">= c1eb537bf4560b3ad4df606c266c665624f3b502, < 9a5dd61151399ad5a5d69aad28ab164734c1e3bc","e78308a6dcab1e53b38b8dd952e69c515cd324d7","2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c",">= 6.6.24, < 6.6.59",">= 6.7.12, < 6.8",">= 6.8.3, < 6.9"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"euvd":{"id":"EUVD-2024-44608","exploited":false,"provenance":"source"}}