Critical Vulnerability in Linux Kernel: LoongArch BPF Return Value Override
Summary
CVE-2025-22048: In the Linux kernel, the following vulnerability has been resolved: LoongArch: BPF: Don't override subprog's return value The verifier test calls: div by 0 in subprog triggers a panic at the ld.bu instruction. Affects linux versions 6.1.106-1 – 6.9.9-1. 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 Linux kernel is the core component of many operating systems, providing essential services for all other parts of the system. It manages hardware resources and enables communication between software and hardware. This vulnerability specifically affects the LoongArch architecture's BPF (Berkeley Packet Filter) implementation, which is used for packet filtering and network traffic analysis. The flaw arises from incorrect handling of return values in BPF subprograms, potentially leading to system instability.
Vulnerability Detail
In the Linux kernel, a vulnerability was identified in the handling of return values for BPF subprograms on the LoongArch architecture. The issue stems from a commit that sign-extended the return value from the dedicated a5 register to the a0 register, which is incorrect for BPF_PSEUDO_CALL. This can lead to a panic when the verifier test calls: div by 0 in subprog is triggered, causing the system to crash. The vulnerability can be exploited in environments where BPF is used, potentially leading to denial of service.
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 avoid using BPF subprograms that may trigger this vulnerability until the kernel is updated. Additionally, monitoring system logs for any panic events related to BPF can help in identifying potential issues.
Conclusion
The CVE-2025-22048 vulnerability in the Linux kernel poses significant risks to systems utilizing the LoongArch architecture's BPF implementation. It is crucial for users to update their kernels to the patched versions to ensure system stability and security. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for linux →
FAQ
CVE-2025-22048 is a vulnerability in the Linux kernel affecting the LoongArch architecture's BPF implementation, which can lead to system crashes.
You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.
Exploitation of this vulnerability can lead to system instability and denial of service, impacting the availability of services relying on the Linux kernel.
Yes, a patch has been released. Users should update their Linux kernel to the latest version to mitigate this vulnerability.
If an immediate update is not possible, avoid using BPF subprograms that may trigger the vulnerability and monitor system logs for any related issues.
Related vulnerabilities
Recent vulnerabilities recorded for linux.