Vulnerability in Kernel: bpf: Track subprog poke descriptors correctly and fix use-after-free
Summary
UVI-2021-1001154: bpf: Track subprog poke descriptors correctly and fix use-after-free. Affects Kernel versions >= a748c6975dea325da540610c2ba9b5f332c603e6, < 599148d40366bd5d1d504a3a8fcd65e21107e500. 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 Kernel is a critical component of the Linux operating system that manages system resources and provides an interface for applications to interact with the hardware. It is responsible for tasks such as process management, memory management, and device drivers. This vulnerability affects the Kernel and specifically relates to the handling of subprog poke descriptors. Subprog poke descriptors are used in Berkeley Packet Filter (BPF) programs to modify the behavior of the kernel. The vulnerability allows an attacker to trigger a use-after-free condition, potentially leading to arbitrary code execution or a system crash.
Vulnerability Detail
The vulnerability arises from incorrect tracking of subprog poke descriptors in the Kernel. When a BPF program modifies the behavior of the kernel using subprog poke descriptors, the Kernel fails to properly track these descriptors, leading to a use-after-free condition. This can be exploited by an attacker to execute arbitrary code or crash the system. The vulnerability was introduced in version v5.10 of the Linux Kernel and is fixed in version v5.13.5.
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
There is no known workaround for this vulnerability. It is recommended to apply the fix by updating the Linux Kernel.
Conclusion
In conclusion, the Kernel is vulnerable to a use-after-free condition related to subprog poke descriptors. This vulnerability can be exploited to execute arbitrary code or crash the system. It is crucial to update the Linux Kernel to version v5.13.5 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability allows an attacker to trigger a use-after-free condition in the Kernel, which can lead to arbitrary code execution or a system crash.
You can use the Vulert Playground (https://vulert.com/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 one.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate the risk.
Yes, this vulnerability can be exploited remotely if an attacker can execute malicious BPF programs on the target system.
The only known mitigation for this vulnerability is to update the Linux Kernel to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.