{"id":"CVE-2021-47248","published":"2024-05-21T14:19:45Z","modified":"2026-08-05T08:46:58Z","title":"udp: fix race between close() and udp_abort()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nudp: fix race between close() and udp_abort()\n\nKaustubh reported and diagnosed a panic in udp_lib_lookup().\nThe root cause is udp_abort() racing with close(). Both\nracing functions acquire the socket lock, but udp{v6}_destroy_sock()\nrelease it before performing destructive actions.\n\nWe can't easily extend the socket lock scope to avoid the race,\ninstead use the SOCK_DEAD flag to prevent udp_abort from doing\nany action when the critical race happens.\n\nDiagnosed-and-tested-by: Kaustubh Pandey <kapandey@codeaurora.org>","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0019,"percentile":0.08848,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e3c36c773aed0fef8b1d3d555b43393ec564400f","tags":[]},{"url":"https://git.kernel.org/stable/c/a0882f68f54f7a8b6308261acee9bd4faab5a69e","tags":[]},{"url":"https://git.kernel.org/stable/c/2f73448041bd0682d4b552cfd314ace66107f1ad","tags":[]},{"url":"https://git.kernel.org/stable/c/5a88477c1c85e4baa51e91f2d40f2166235daa56","tags":[]},{"url":"https://git.kernel.org/stable/c/8729ec8a2238152a4afc212a331a6cd2c61aeeac","tags":[]},{"url":"https://git.kernel.org/stable/c/65310b0aff86980a011c7c7bfa487a333d4ca241","tags":[]},{"url":"https://git.kernel.org/stable/c/a8b897c7bcd47f4147d066e22cc01d1026d7640e","tags":[]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":1.77},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < 5a88477c1c85e4baa51e91f2d40f2166235daa56",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < 8729ec8a2238152a4afc212a331a6cd2c61aeeac",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241",">= 5d77dca82839ef016a93ad7acd7058b14d967752, < a8b897c7bcd47f4147d066e22cc01d1026d7640e"]},{"vendor":"Linux","product":"Linux","versions":["4.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-23T18:04:43.420239Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33896","exploited":false,"provenance":"source"}}