Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2021-47248

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

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 <kapandey@codeaurora.org>

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < e3c36c773aed0fef8b1d3d555b43393ec564400faffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < a0882f68f54f7a8b6308261acee9bd4faab5a69eaffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < 2f73448041bd0682d4b552cfd314ace66107f1adaffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < 5a88477c1c85e4baa51e91f2d40f2166235daa56affected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < 8729ec8a2238152a4afc212a331a6cd2c61aeeacaffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < 65310b0aff86980a011c7c7bfa487a333d4ca241affected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to < a8b897c7bcd47f4147d066e22cc01d1026d7640eaffected

Linux Linux

Default version status: affected

  • 4.9affected
  • 0 to < 4.9unaffected
  • 4.9.274 to ≤ 4.9.*unaffected
  • 4.14.238 to ≤ 4.14.*unaffected
  • 4.19.196 to ≤ 4.19.*unaffected
  • 5.4.128 to ≤ 5.4.*unaffected
  • 5.10.46 to ≤ 5.10.*unaffected
  • 5.12.13 to ≤ 5.12.*unaffected
  • 5.13 to ≤ *unaffected

References