Vulnerability in Kernel Package: bpf, arm64: Clear prog->jited_len along prog->jited
Summary
GSD-2022-1003857: bpf, arm64: Clear prog->jited_len along prog->jited. Affects Kernel versions >= db496944fdaaf2a67d2f60529f5dc23abf809506, < aaf61a312af63e1cfe2264c4c5b8cd4ea3626025. 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 package is a crucial component of the Linux operating system, responsible for managing the system's core functions and facilitating communication between hardware and software. It provides essential services such as memory management, process scheduling, and device drivers. The bpf (Berkeley Packet Filter) subsystem within the Kernel enables efficient packet filtering and analysis. The arm64 architecture is specifically designed for 64-bit ARM processors. This vulnerability affects the bpf subsystem on arm64 architecture.
Vulnerability Detail
The vulnerability arises from a failure to clear the 'jited_len' field along with the 'jited' field in the 'prog' structure within the bpf subsystem on arm64 architecture. This oversight can potentially lead to memory corruption or information disclosure. An attacker could exploit this vulnerability to execute arbitrary code or obtain sensitive information from the affected system. The vulnerability was introduced in version v4.16 of the Linux Kernel and has been fixed in version v4.19.247.
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
If updating the Kernel is not immediately feasible, a possible workaround is to disable the affected bpf functionality on arm64 architecture. This can be achieved by modifying the Kernel configuration and rebuilding it without the bpf subsystem. However, this workaround may result in the loss of certain packet filtering and analysis capabilities provided by bpf.
Conclusion
In conclusion, the bpf subsystem on arm64 architecture in the Kernel package is vulnerable to a memory corruption or information disclosure issue. It is crucial to update the Kernel to version v4.19.247 or later to mitigate this vulnerability. If immediate updating is not possible, disabling the affected bpf functionality can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to execute arbitrary code or obtain sensitive information from the affected system.
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 to the playground, and it will analyze and alert you in real-time if the vulnerability is present.
There is no evidence to suggest that this vulnerability has been exploited in the wild at this time.
Disabling the affected bpf functionality on arm64 architecture can serve as a temporary mitigation until the Kernel is updated. However, this may result in the loss of certain packet filtering and analysis capabilities provided by bpf.
You can refer to the vulnerability details in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003857.json) for more information.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.