{"id":"CVE-2024-50152","aliases":["CVE-2024-50152"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix possible double free in smb2_set_ea()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix possible double free in smb2_set_ea()\n\nClang static checker(scan-build) warning：\nfs/smb/client/smb2ops.c:1304:2: Attempt to free released memory.\n 1304 |         kfree(ea);\n      |         ^~~~~~~~~\n\nThere is a double free in such case:\n'ea is initialized to NULL' -> 'first successful memory allocation for\nea' -> 'something failed, goto sea_exit' -> 'first memory release for ea'\n-> 'goto replay_again' -> 'second goto sea_exit before allocate memory\nfor ea' -> 'second memory release for ea resulted in double free'.\n\nRe-initialie 'ea' to NULL near to the replay_again label, it can fix this\ndouble free problem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix possible double free in smb2_set_ea()\n\nClang static checker(scan-build) warning：\nfs/smb/client/smb2ops.c:1304:2: Attempt to free released memory.\n 1304 |         kfree(ea);\n      |         ^~~~~~~~~\n\nThere is a double free in such case:\n'ea is initialized to NULL' -> 'first successful memory allocation for\nea' -> 'something failed, goto sea_exit' -> 'first memory release for ea'\n-> 'goto replay_again' -> 'second goto sea_exit before allocate memory\nfor ea' -> 'second memory release for ea resulted in double free'.\n\nRe-initialie 'ea' to NULL near to the replay_again label, it can fix this\ndouble free problem.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: smb: cliente: se corrige una posible doble liberación en smb2_set_ea() Advertencia del comprobador estático de Clang (scan-build): fs/smb/client/smb2ops.c:1304:2: Intento de liberar memoria liberada. 1304 | kfree(ea); | ^~~~~~~~~ Hay una doble liberación en tal caso: 'ea se inicializa a NULL' -&gt; 'primera asignación de memoria exitosa para ea' -&gt; 'algo falló, goto sea_exit' -&gt; 'primera liberación de memoria para ea' -&gt; 'goto replay_again' -&gt; 'segundo goto sea_exit antes de asignar memoria para ea' -&gt; 'la segunda liberación de memoria para ea resultó en una doble liberación'. Reinicialice 'ea' a NULL cerca de la etiqueta replay_again, puede solucionar este problema de doble liberación.","source":"nvd"}],"published":"2024-11-07T09:31:28.733Z","modified":"2026-08-05T11:42:06.009Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"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":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"433042a91f9373241307725b52de573933ffedbf","fixed":"b1813c220b76f60b1727984794377c4aa849d4c1","status":"affected"},{"type":"git","introduced":"4f1fffa2376922f3d1d506e49c0fd445b023a28e","fixed":"c9f758ecf2562dfdd4adf12c22921b5de8366123","status":"affected"},{"type":"git","introduced":"4f1fffa2376922f3d1d506e49c0fd445b023a28e","fixed":"19ebc1e6cab334a8193398d4152deb76019b5d34","status":"affected"},{"type":"semver","introduced":"6.6.32","fixed":"6.6.59","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","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.32","fixed":"6.6.59"},{"status":"affected","introduced":"6.8","fixed":"6.11.6"},{"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/b1813c220b76f60b1727984794377c4aa849d4c1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9f758ecf2562dfdd4adf12c22921b5de8366123","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/19ebc1e6cab334a8193398d4152deb76019b5d34","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50152","url":"https://www.cve.org/CVERecord?id=CVE-2024-50152","licence":"CVE Terms of Use","modified":"2026-08-05T11:42:06.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50152","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50152","licence":"Public domain","modified":"2026-08-04T11:21:26.190Z"}],"updatedAt":"2026-11-25T22:58:47.860Z","epss":{"score":0.00815,"percentile":0.54085,"date":"2026-11-30T12:00:22.000Z"}}