CVE-2021-47248

MEDIUM

Linux Kernel 4.9-4.9.274 - Race Condition in UDP Socket Close and Abort

Title source: llm
STIX 2.1

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]>

Scores

CVSS v3 4.7
EPSS 0.0018
EPSS Percentile 7.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-362
Status published
Products (18)
Linux/Linux < 4.9
Linux/Linux 4.14.238 - 4.14.*
Linux/Linux 4.19.196 - 4.19.*
Linux/Linux 4.9
Linux/Linux 4.9.274 - 4.9.*
Linux/Linux 5.10.46 - 5.10.*
Linux/Linux 5.12.13 - 5.12.*
Linux/Linux 5.13
Linux/Linux 5.4.128 - 5.4.*
Linux/Linux 5d77dca82839ef016a93ad7acd7058b14d967752 - 2f73448041bd0682d4b552cfd314ace66107f1ad
... and 8 more
Published May 21, 2024
Tracked Since Feb 18, 2026