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-1000166: af_packet: fix data-race in packet_setsockopt / packet_setsockopt. Affects Kernel versions >= 47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2, < 4fc41403f0b6e4ac454f2ec27c05564fdbdf036b. 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 vulnerability, identified as GSD-2022-1000166, affects the packet_setsockopt and packet_setsockopt functions within the af_packet package.

Vulnerability Detail

The vulnerability in packet_setsockopt / packet_setsockopt functions in the af_packet package allows for a data-race condition. This data-race can lead to potential security vulnerabilities, although the actual impact and attack plausibility have not yet been proven. The vulnerability was introduced in version v4.3 of the Linux Kernel by commit 47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 and has been fixed in version v5.4.177 by commit 4fc41403f0b6e4ac454f2ec27c05564fdbdf036b.

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

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the af_packet package in the Linux Kernel is vulnerable to a data-race condition in the packet_setsockopt / packet_setsockopt functions. It is recommended to update the Linux Kernel to version v5.4.177 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The af_packet package is a part of the Linux Kernel ecosystem and provides a socket interface for user-space applications to send and receive packets directly from the network stack.

The impact of this vulnerability is currently unknown as the actual attack plausibility has not been proven. However, it has the potential to lead to security vulnerabilities.

This vulnerability was introduced in version v4.3 of the Linux Kernel by commit 47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.177 or later.

You can find more information about this vulnerability in the GSD-2022-1000166 JSON file available on the Cloud Security Alliance's GSD database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000166.json

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