af_packet: Fix Data-Race in packet_setsockopt / packet_setsockopt

Kernel Updated 02 Oct 2025

Summary

18/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000134: af_packet: fix data-race in packet_setsockopt / packet_setsockopt. Affects Kernel versions >= 47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2, < 1f0c712832907baef27d13721b3ca2e515d39ecf. 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 af_packet package is a part of the Linux Kernel ecosystem. It provides a socket interface for user-space applications to send and receive packets directly from the network stack. This package is responsible for handling network communication and plays a critical role in the functioning of the Linux operating system.

Vulnerability Detail

The vulnerability identified in af_packet is a data-race issue in the packet_setsockopt / packet_setsockopt functions. This vulnerability was introduced in version v4.3 of the Linux Kernel and was fixed in version v4.19.228. A data-race occurs when multiple threads access shared data concurrently without proper synchronization, leading to unpredictable behavior and potential security vulnerabilities. In this case, the data-race in packet_setsockopt / packet_setsockopt could be exploited by an attacker to manipulate network packets or cause a denial-of-service (DoS) condition.

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 this vulnerability is fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is strongly advised to update the Kernel to the recommended version.

Conclusion

The af_packet package in the Linux Kernel was found to have a data-race vulnerability in the packet_setsockopt / packet_setsockopt functions. This vulnerability could be exploited to manipulate network packets or cause a denial-of-service condition. It is crucial to update the Linux Kernel to version v4.19.228 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

af_packet is a package in the Linux Kernel that provides a socket interface for user-space applications to send and receive network packets directly from the network stack. It plays a crucial role in network communication within the Linux operating system.

A data-race vulnerability occurs when multiple threads access shared data concurrently without proper synchronization. This can lead to unpredictable behavior and potential security vulnerabilities.

The data-race vulnerability in packet_setsockopt / packet_setsockopt could be exploited by an attacker to manipulate network packets or cause a denial-of-service (DoS) condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.19.228 or later. This update includes the necessary patch to address the data-race issue.

As this vulnerability is fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is strongly advised to update the Kernel to the recommended version.

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