Critical Vulnerability in Linux Kernel: LoongArch BPF Return Value Override

linux Updated 02 Oct 2025

Summary

16/04/2025
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback