CVE-2021-47248

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

State
Published
Severity
7.8 High
Published
May 21, 2024
Updated
Aug 5, 2026
Reserved
Apr 10, 2024

Read the record on cve.org

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>

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before e3c36c773aed0fef8b1d3d555b43393ec564400fAffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before a0882f68f54f7a8b6308261acee9bd4faab5a69eAffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before 2f73448041bd0682d4b552cfd314ace66107f1adAffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before 5a88477c1c85e4baa51e91f2d40f2166235daa56Affected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before 8729ec8a2238152a4afc212a331a6cd2c61aeeacAffected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before 65310b0aff86980a011c7c7bfa487a333d4ca241Affected
  • 5d77dca82839ef016a93ad7acd7058b14d967752 to before a8b897c7bcd47f4147d066e22cc01d1026d7640eAffected
LinuxLinux
  • 4.9Affected
  • before 4.9Not affected
  • 4.9.274 through 4.9.*Not affected
  • 4.14.238 through 4.14.*Not affected
  • 4.19.196 through 4.19.*Not affected
  • 5.4.128 through 5.4.*Not affected
  • 5.10.46 through 5.10.*Not affected
  • 5.12.13 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.