CVE Catalog

CVE-2025-22048

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.20%

10th percentile - higher than 10% of all known CVEs

Summary

In the Linux kernel on LoongArch architecture in the BPF subsystem, there is a bug that overrides the return value of a subprogram. During bpf2bpf calls, the return value is incorrectly moved from register a0 to a5, which can cause a kernel panic.

Risk Assessment

An attacker could exploit this vulnerability to trigger a kernel panic, leading to a denial of service (DoS) on the system.

Recommendation

It is recommended to immediately update the Linux kernel to a version containing the fix for CVE-2025-22048.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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. The ld.bu insn is trying to load byte from memory address returned by the subprog. The subprog actually set the correct address at the a5 register (dedicated register for BPF return values). But at commit 73c359d1d356 ("LoongArch: BPF: Sign-extend return values") we also sign extended a5 to the a0 register (return value in LoongArch). For function call insn, we later propagate the a0 register back to a5 register. This is right for native calls but wrong for bpf2bpf calls which expect zero-extended return value in a5 register. So only move a0 to a5 for native calls (i.e. non-BPF_PSEUDO_CALL).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS