NetSight
high7.8

CVE-2021-47248

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 ud…

Impact

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 products

VendorProductAffected versions
LinuxLinux Kernel
from 4.9 before 4.9.274
from 4.10 before 4.14.238
from 4.15 before 4.19.196
from 4.20 before 5.4.128
from 5.5 before 5.10.46
from 5.11 before 5.12.13

Weakness classification

References