CVE-2021-47248

published 21 May 2024 · updated 5 Aug 2026

udp: fix race between close() and udp_abort()

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2f73448041bd0682d4b552cfd314ace66107f1ad, Kernel 5a88477c1c85e4baa51e91f2d40f2166235daa56, Kernel 65310b0aff86980a011c7c7bfa487a333d4ca241 and 4 more.

In the Linux kernel, the following vulnerability has been resolved: udp: fix race between close() and udp_abort() Kaustubh reported and diagnosed a panic in udp_lib_lookup(). The root cause is udp_abort() racing with close(). Both racing functions acquire the socket lock, but udp{v6}_destroy_sock() release it before performing destructive actions. We can't easily extend the socket lock scope to avoid the race, instead use the SOCK_DEAD flag to prevent udp_abort from doing any action when the critical race happens. Diagnosed-and-tested-by: Kaustubh Pandey <kapandey@codeaurora.org>

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.9, >=5d77dca82839ef016a93ad7acd7058b14d967752 <2f73448041bd0682d4b552cfd314ace66107f1ad, >=5d77dca82839ef016a93ad7acd7058b14d967752 <5a88477c1c85e4baa51e91f2d40f2166235daa56, >=5d77dca82839ef016a93ad7acd7058b14d967752 <65310b0aff86980a011c7c7bfa487a333d4ca241, >=5d77dca82839ef016a93ad7acd7058b14d967752 <8729ec8a2238152a4afc212a331a6cd2c61aeeac, >=5d77dca82839ef016a93ad7acd7058b14d967752 <a0882f68f54f7a8b6308261acee9bd4faab5a69e, >=5d77dca82839ef016a93ad7acd7058b14d967752 <a8b897c7bcd47f4147d066e22cc01d1026d7640e, >=5d77dca82839ef016a93ad7acd7058b14d967752 <e3c36c773aed0fef8b1d3d555b43393ec564400f2f73448041bd0682d4b552cfd314ace66107f1ad, 5a88477c1c85e4baa51e91f2d40f2166235daa56, 65310b0aff86980a011c7c7bfa487a333d4ca241, 8729ec8a2238152a4afc212a331a6cd2c61aeeac, a0882f68f54f7a8b6308261acee9bd4faab5a69e, a8b897c7bcd47f4147d066e22cc01d1026d7640e, e3c36c773aed0fef8b1d3d555b43393ec564400f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47248 severity on Zeptric[![CVE-2021-47248](https://zeptric.io/badge/cve/CVE-2021-47248.svg)](https://zeptric.io/cve/CVE-2021-47248)