Race Condition Vulnerability in udp Package

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1001058: udp: fix race between close() and udp_abort(). Affects Kernel versions >= 5d77dca82839ef016a93ad7acd7058b14d967752, < 65310b0aff86980a011c7c7bfa487a333d4ca241. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The udp package is a component of the Linux Kernel, which is responsible for handling UDP (User Datagram Protocol) network traffic. UDP is a connectionless protocol that allows for the transmission of data packets without the need for establishing a connection. The udp package is an integral part of the Linux Kernel and is widely used in various networking applications.

Vulnerability Detail

The vulnerability identified in the udp package is a race condition that occurs between the close() function and the udp_abort() function. A race condition is a flaw in software where the behavior of a program depends on the relative timing of events. In this case, there is a possibility of a race condition between the close() function, which is used to close a UDP socket, and the udp_abort() function, which is responsible for aborting a UDP connection. This race condition can lead to various issues, including resource leaks, memory corruption, and potential security vulnerabilities. The vulnerability was introduced in version v4.9 of the Linux Kernel and has been fixed in version v5.12.13.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the Linux Kernel to the fixed version.

Conclusion

In conclusion, the udp package in the Linux Kernel is vulnerable to a race condition that can lead to resource leaks, memory corruption, and potential security vulnerabilities. It is crucial to update the Linux Kernel to version v5.12.13 or later to mitigate the risk associated with this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

A race condition is a flaw in software where the behavior of a program depends on the relative timing of events. It occurs when multiple threads or processes access shared data concurrently, and the outcome of the program depends on the order in which these accesses occur.

The race condition in the udp package can lead to resource leaks, memory corruption, and potential security vulnerabilities. Exploiting this vulnerability may allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service condition.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it to identify any open-source vulnerabilities, including this race condition in the udp package.

Yes, a patch for this vulnerability is available in version v5.12.13 of the Linux Kernel. It is recommended to update to this version or a later version to mitigate the risk associated with this vulnerability.

You can find more information about this vulnerability in the GSD-2021-1001058 JSON file available in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001058.json).

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback