CVE-2021-47248
udp: fix race between close() and udp_abort()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 5a88477c1c85e4baa51e91f2d40f2166235daa56; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 8729ec8a2238152a4afc212a331a6cd2c61aeeac; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a8b897c7bcd47f4147d066e22cc01d1026d7640e
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 5a88477c1c85e4baa51e91f2d40f2166235daa56; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 8729ec8a2238152a4afc212a331a6cd2c61aeeac; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a8b897c7bcd47f4147d066e22cc01d1026d7640e; Linux 4.9
- Fixed in
- Linux 2f73448041bd0682d4b552cfd314ace66107f1ad, Linux 5a88477c1c85e4baa51e91f2d40f2166235daa56, Linux 8729ec8a2238152a4afc212a331a6cd2c61aeeac, Linux 65310b0aff86980a011c7c7bfa487a333d4ca241
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-362
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 5a88477c1c85e4baa51e91f2d40f2166235daa56; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 8729ec8a2238152a4afc212a331a6cd2c61aeeac; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a8b897c7bcd47f4147d066e22cc01d1026d7640e | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47248. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47248.md Affected: Linux >= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad; >= 5d77dca82839ef016a93ad7… Fixed in: Linux 2f73448041bd0682d4b552cfd314ace66107f1ad, Linux 5a88477c1c85e4baa51e91f2d40f2166235daa56, Linux 8729ec8a2238152a4afc212a331a6cd2c61aeeac, Linux 65310b0aff86980a011c7c7bfa487a333d4ca241 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/e3c36c773aed0fef8b1d3d555b43393ec564400f
- https://git.kernel.org/stable/c/a0882f68f54f7a8b6308261acee9bd4faab5a69e
- https://git.kernel.org/stable/c/2f73448041bd0682d4b552cfd314ace66107f1ad
- https://git.kernel.org/stable/c/5a88477c1c85e4baa51e91f2d40f2166235daa56
- https://git.kernel.org/stable/c/8729ec8a2238152a4afc212a331a6cd2c61aeeac
- https://git.kernel.org/stable/c/65310b0aff86980a011c7c7bfa487a333d4ca241
- https://git.kernel.org/stable/c/a8b897c7bcd47f4147d066e22cc01d1026d7640e
FAQ
Is CVE-2021-47248 being exploited?
There is no confirmed exploitation: CVE-2021-47248 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47248?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47248?
Linux >= 5d77dca82839ef016a93ad7acd7058b14d967752, < e3c36c773aed0fef8b1d3d555b43393ec564400f; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a0882f68f54f7a8b6308261acee9bd4faab5a69e; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 2f73448041bd0682d4b552cfd314ace66107f1ad; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 5a88477c1c85e4baa51e91f2d40f2166235daa56; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 8729ec8a2238152a4afc212a331a6cd2c61aeeac; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241; >= 5d77dca82839ef016a93ad7acd7058b14d967752, < a8b897c7bcd47f4147d066e22cc01d1026d7640e; Linux 4.9.
Is there a fix for CVE-2021-47248?
Yes. Fixed in Linux 2f73448041bd0682d4b552cfd314ace66107f1ad, Linux 5a88477c1c85e4baa51e91f2d40f2166235daa56, Linux 8729ec8a2238152a4afc212a331a6cd2c61aeeac, Linux 65310b0aff86980a011c7c7bfa487a333d4ca241. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-47248?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.