{"id":"CVE-2024-50152","published":"2024-11-07T09:31:28Z","modified":"2026-08-05T11:42:06Z","title":"smb: client: fix possible double free in smb2_set_ea()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00481,"percentile":0.42416,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b1813c220b76f60b1727984794377c4aa849d4c1","tags":[]},{"url":"https://git.kernel.org/stable/c/c9f758ecf2562dfdd4adf12c22921b5de8366123","tags":[]},{"url":"https://git.kernel.org/stable/c/19ebc1e6cab334a8193398d4152deb76019b5d34","tags":[]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":8.48},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 433042a91f9373241307725b52de573933ffedbf, < b1813c220b76f60b1727984794377c4aa849d4c1",">= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < c9f758ecf2562dfdd4adf12c22921b5de8366123",">= 4f1fffa2376922f3d1d506e49c0fd445b023a28e, < 19ebc1e6cab334a8193398d4152deb76019b5d34",">= 6.6.32, < 6.6.59"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"euvd":{"id":"EUVD-2024-44654","exploited":false,"provenance":"source"}}