{"id":"CVE-2024-50120","aliases":["CVE-2024-50120"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: Handle kstrdup failures for passwords","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: smb: cliente: Manejar errores de kstrdup para contraseñas. En smb3_reconfigure(), después de duplicar ctx-&gt;password y ctx-&gt;password2 con kstrdup(), debemos verificar si hay errores de asignación. Si la asignación de ses-&gt;password falla, devuelva -ENOMEM. Si la asignación de ses-&gt;password2 falla, libere ses-&gt;password, configúrelo en NULL y devuelva -ENOMEM.","source":"nvd"}],"published":"2024-11-05T17:10:49.887Z","modified":"2026-06-17T08:03:38.453Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7e8cffa4f85e6839335d75e6b47f918d90c1d194","fixed":"35dbac8c328d6afe937cd45ecd41d209d0b9f8b8","status":"affected"},{"type":"git","introduced":"c1eb537bf4560b3ad4df606c266c665624f3b502","fixed":"35488799b0ab6e4327f82e1d9209a60805665b37","status":"affected"},{"type":"git","introduced":"c1eb537bf4560b3ad4df606c266c665624f3b502","fixed":"9a5dd61151399ad5a5d69aad28ab164734c1e3bc","status":"affected"},{"type":"git","version":"e78308a6dcab1e53b38b8dd952e69c515cd324d7","status":"affected"},{"type":"git","version":"2a0fc63f1f4fccfeb367d0c57b8a243cec60c26c","status":"affected"},{"type":"semver","introduced":"6.6.24","fixed":"6.6.59","status":"affected"},{"type":"semver","introduced":"6.7.12","fixed":"6.8","status":"affected"},{"type":"semver","introduced":"6.8.3","fixed":"6.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.6.59","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.6","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.24","fixed":"6.6.59"},{"status":"affected","introduced":"6.7.12","fixed":"6.8"},{"status":"affected","introduced":"6.8.3","fixed":"6.11.6"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50120","url":"https://www.cve.org/CVERecord?id=CVE-2024-50120","licence":"CVE Terms of Use","modified":"2026-05-23T15:54:32.067Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50120","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50120","licence":"Public domain","modified":"2026-06-17T08:03:38.453Z"}],"updatedAt":"2026-11-25T22:58:47.785Z","epss":{"score":0.00216,"percentile":0.12754,"date":"2026-12-01T12:00:22.000Z"}}