CVE-2021-47248

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

MEDIUM
4.7
CVSS Score
Published: May 21, 2024 at 02:19 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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 <[email protected]>

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.10 ≤ v < 4.14.2384.15 ≤ v < 4.19.1964.20 ≤ v < 5.4.1284.9 ≤ v < 4.14.2384.9 ≤ v < 4.19.1964.9 ≤ v < 4.9.2744.9 ≤ v < 5.10.464.9 ≤ v < 5.12.134.9 ≤ v < 5.134.9 ≤ v < 5.4.1285.11 ≤ v < 5.12.135.5 ≤ v < 5.10.465.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55.13 rc65d77dca82839ef016a93ad7acd7058b14d967752
Vendor states this is fixed in 2f73448041bd0682d4b552cfd314ace66107f1ad (fixed)
Vendor states this is fixed in 5a88477c1c85e4baa51e91f2d40f2166235daa56 (fixed)
Vendor states this is fixed in 65310b0aff86980a011c7c7bfa487a333d4ca241 (fixed)
Vendor states this is fixed in 8729ec8a2238152a4afc212a331a6cd2c61aeeac (fixed)
Vendor states this is fixed in a0882f68f54f7a8b6308261acee9bd4faab5a69e (fixed)
Vendor states this is fixed in a8b897c7bcd47f4147d066e22cc01d1026d7640e (fixed)
Vendor states this is fixed in e3c36c773aed0fef8b1d3d555b43393ec564400f (fixed)
Vendor states this is fixed in 4.14.238 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 4.9.274 (unaffected)
Vendor states this is fixed in 5.10.46 (unaffected)
Vendor states this is fixed in 5.12.13 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.128 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f73448041bd0682d4b552cfd314ace66107f1ad
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5a88477c1c85e4baa51e91f2d40f2166235daa56
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/65310b0aff86980a011c7c7bfa487a333d4ca241
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8729ec8a2238152a4afc212a331a6cd2c61aeeac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0882f68f54f7a8b6308261acee9bd4faab5a69e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a8b897c7bcd47f4147d066e22cc01d1026d7640e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3c36c773aed0fef8b1d3d555b43393ec564400f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card