Data Race Vulnerability in ipv6 Package
Summary
GSD-2022-1000461: ipv6: fix data-race in fib6_info_hw_flags_set / fib6_purge_rt. Affects Kernel versions >= 0c5fcf9e249ee1d94cf872c99baf9cba7ff9ce27, < 9ed25183e6d47a71f5385dbc52419c473646c768. 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 ipv6 package is a component of the Linux Kernel, which is responsible for handling IPv6 network protocol functionality. It provides support for IPv6 addressing, routing, and packet forwarding. The package is an integral part of the Linux operating system and is widely used in various networked environments. However, a data race vulnerability has been identified in the package, which can lead to potential security issues.
Vulnerability Detail
The data race vulnerability in the ipv6 package arises from a race condition in the functions fib6_info_hw_flags_set and fib6_purge_rt. This vulnerability can be exploited by malicious actors to manipulate the hardware flags of IPv6 route entries, potentially leading to incorrect routing decisions or denial of service attacks. The vulnerability was introduced in version v5.12 of the Linux Kernel and has been fixed in version v5.15.25. It is crucial to address this vulnerability to ensure the integrity and security of IPv6 networking in Linux-based systems.
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 temporary workaround, users can apply the following code changes to the affected functions:
-
In the function fib6_info_hw_flags_set:
- Add a lock to ensure exclusive access to the hardware flags variable.
-
In the function fib6_purge_rt:
- Implement proper synchronization mechanisms to prevent data races.
Please note that applying these code changes is not a substitute for updating to the fixed version of the Linux Kernel. It is recommended to update to the latest kernel version as soon as possible.
Conclusion
The data race vulnerability in the ipv6 package of the Linux Kernel can have significant security implications, including incorrect routing decisions and denial of service attacks. It is crucial to update to the fixed version of the Linux Kernel (v5.15.25 or later) to mitigate this vulnerability. Additionally, users can apply the provided code changes as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The data race vulnerability in the ipv6 package can result in incorrect routing decisions or denial of service attacks. It can be exploited by malicious actors to manipulate the hardware flags of IPv6 route entries.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this data race vulnerability in the ipv6 package.
Yes, a patch for this vulnerability is available in version v5.15.25 of the Linux Kernel. It is recommended to update to this version or later to mitigate the vulnerability.
Yes, you can apply the provided code changes as a temporary workaround. However, it is crucial to update to the fixed version of the Linux Kernel as soon as possible.
You can refer to the vulnerability details in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000461.json for more information about this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.