af_packet: Fix Data-Race in packet_setsockopt / packet_setsockopt
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.