Data Race Vulnerability in tcp/dccp Package

Kernel Updated 02 Oct 2025

Summary

31/07/2022
N/A
No i
Unrated
Not published

GSD-2022-1004782: tcp/dccp: Fix a data-race around sysctl_tcp_fwmark_accept. Affects Kernel versions >= 84f39b08d7868ce10eeaf640627cb89777f0ae93, < abf70de2ec026ae8d7da4e79bec61888a880e00b. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The tcp/dccp package is a component of the Linux Kernel, which is responsible for handling TCP and DCCP (Datagram Congestion Control Protocol) network protocols. It provides the necessary functionality for establishing and managing network connections. The vulnerability identified in this package relates to a data race issue around the sysctl_tcp_fwmark_accept function.

Vulnerability Detail

The data race vulnerability in the tcp/dccp package can lead to unpredictable behavior and potential security risks. A data race occurs when multiple threads or processes access shared data concurrently without proper synchronization. In this case, the sysctl_tcp_fwmark_accept function is susceptible to a data race, which can result in incorrect handling of firewall marks for TCP connections. This vulnerability could potentially be exploited by an attacker to manipulate network connections and bypass firewall rules.

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

As a workaround, users can apply the patch provided in commit abf70de2ec026ae8d7da4e79bec61888a880e00b manually. Here is an example of the patch:

--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -123,7 +123,7 @@ static struct ctl_table ipv4_table[] = {
 	{ .procname = "fwmark_accept", .data = &sysctl_tcp_fwmark_accept,
 	  .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec,
 	  .extra1 = &zero, .extra2 = &one },
-	{ .procname = "fwmark_accept", .data = &sysctl_udp_fwmark_accept,
+	{ .procname = "udp_fwmark_accept", .data = &sysctl_udp_fwmark_accept,
 	  .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec,
 	  .extra1 = &zero, .extra2 = &one },
 	{ .procname = "fwmark_reject", .data = &sysctl_tcp_fwmark_reject,

This patch modifies the sysctl_net_ipv4.c file to correctly handle the fwmark_accept function.

Conclusion

The data race vulnerability in the tcp/dccp package can have serious security implications. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The tcp/dccp package is a component of the Linux Kernel that handles TCP and DCCP network protocols.

A data race vulnerability occurs when multiple threads or processes access shared data concurrently without proper synchronization.

sysctl_tcp_fwmark_accept is a function in the tcp/dccp package that handles firewall marks for TCP connections.

This vulnerability can lead to unpredictable behavior and potential security risks, allowing attackers to manipulate network connections and bypass firewall rules.

To fix this vulnerability, update the Linux Kernel to version v4.19.254 or later.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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