CVEvulnerability

CVE-2021-47248

4.7 MEDIUM Published 2024-05-21 Modified 2026-08-04 Official page ↗
Status
Modified
Published
2024-05-21
Last modified
2026-08-04
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1 ([email protected])
4.7 MEDIUM — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-362

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 configurations

• linux linux kernel (>= 4.9 < 4.9.274) • linux linux kernel (>= 4.10 < 4.14.238) • linux linux kernel (>= 4.15 < 4.19.196) • linux linux kernel (>= 4.20 < 5.4.128) • linux linux kernel (>= 5.5 < 5.10.46) • linux linux kernel (>= 5.11 < 5.12.13) • linux linux kernel 5.13

Related

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References