Memory Leak Vulnerability in libbpf
Summary
GSD-2022-1001542: libbpf: Fix memleak in libbpf_netlink_recv(). Affects Kernel versions >= 723644ebfdb2ef7dccdaf4f1b05be9186fdba6b1, < 7cedd22f1a8db371b0937bad0ec1c3020d8ebf51. 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
libbpf is a library used for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It provides a high-level interface for loading and interacting with BPF programs. The library is widely used in various networking and security applications. However, a memory leak vulnerability has been discovered in the libbpf_netlink_recv() function.
Vulnerability Detail
The libbpf_netlink_recv() function in libbpf is vulnerable to a memory leak. When receiving a netlink message, the function fails to release allocated memory, leading to a memory leak. An attacker could potentially exploit this vulnerability to exhaust system memory resources, causing denial of service conditions. The vulnerability was introduced in version v5.16.19 of the Linux Kernel and has been fixed in version v5.16.19 by commit 7cedd22f1a8db371b0937bad0ec1c3020d8ebf51.
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 mentioned above.
Conclusion
The memory leak vulnerability in libbpf can be fixed by updating the Linux Kernel to version v5.16.19 or later. It is recommended to apply the fix to ensure the security and stability of systems using libbpf. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
libbpf is a library used for interacting with the Berkeley Packet Filter (BPF) virtual machine in the Linux kernel. It provides a high-level interface for loading and interacting with BPF programs.
The vulnerability could be exploited by an attacker to exhaust system memory resources, leading to denial of service conditions.
To fix this vulnerability, update the Linux Kernel to version v5.16.19 or later.
There is no known workaround for this vulnerability. It is recommended to apply the fix mentioned above.
For more information, refer to the vulnerability details in the Open Source Vulnerability format: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001542.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.