{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-50120","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-10-21T19:36:19.953Z","datePublished":"2024-11-05T17:10:49.887Z","dateUpdated":"2025-05-04T12:59:34.110Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2025-05-04T12:59:34.110Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/fs_context.c"],"versions":[{"version":"7e8cffa4f85e6839335d75e6b47f918d90c1d194","lessThan":"35dbac8c328d6afe937cd45ecd41d209d0b9f8b8","status":"affected","versionType":"git"},{"version":"c1eb537bf4560b3ad4df606c266c665624f3b502","lessThan":"35488799b0ab6e4327f82e1d9209a60805665b37","status":"affected","versionType":"git"},{"version":"c1eb537bf4560b3ad4df606c266c665624f3b502","lessThan":"9a5dd61151399ad5a5d69aad28ab164734c1e3bc","status":"affected","versionType":"git"},{"version":"e78308a6dcab1e53b38b8dd952e69c515cd324d7","status":"affected","versionType":"git"},{"version":"2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/fs_context.c"],"versions":[{"version":"6.9","status":"affected"},{"version":"0","lessThan":"6.9","status":"unaffected","versionType":"semver"},{"version":"6.6.59","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.11.6","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.24","versionEndExcluding":"6.6.59"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.11.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8.3"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8"},{"url":"https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37"},{"url":"https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc"}],"title":"smb: client: Handle kstrdup failures for passwords","x_generator":{"engine":"bippy-1.2.0"}}}}