Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-22048

published high CVSS 3.1 · 7.8

LoongArch: BPF: Don't override subprog's return value

Published
16 Apr 2025, 14:12:07 UTC
Updated
30 Oct 2026, 12:21:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8382e92f90b601acf6d426121e6f4991502e767d to < d99845f672cce0b610f7c51248ef95d7df63927e · 0c8d50501bc13cacecc19caaddc10db372592a39 to < 7df2696256a034405d3c5a71b3a4c54725de4404 · d5d83242a1d778ceb6d8b07c6b491cf7483ca112 to < 223d565d8892481684091cfbaf3466f2b0e289d3 · 73c359d1d356cf10236ccd358bd55edab33e9424 to < 780628a780b622759d9e5adc76d15432144da1a3 · 73c359d1d356cf10236ccd358bd55edab33e9424 to < 996e90ab446641553e8e21707b38b9709605e0e0 · 73c359d1d356cf10236ccd358bd55edab33e9424 to < 60f3caff1492e5b8616b9578c4bedb5c0a88ed14 · 3b75f627b73d96787a493e2f1187543ba9c056a4 · 6.1.120 to < 6.1.191 · 6.6.64 to < 6.6.87 · 6.12.2 to < 6.12.23 · 6.11.11 to < 6.12 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.87 through 6.6.* (unaffected · semver) · 6.12.23 through 6.12.* (unaffected · semver) · 6.13.11 through 6.13.* (unaffected · semver) · 6.14.2 through 6.14.* (unaffected · semver) · 6.15 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.192-1 DLA-4906-1

Description

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).

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Exploitation requires loading a JITed eBPF program containing a bpf2bpf subprog call via the bpf() syscall on the local system. Per kernel scoring guidance, BPF is a Local attack vector. AC:L - The miscompilation is deterministic — every bpf2bpf call site in a JITed program on LoongArch unconditionally clobbers R0 with the sign-extended low 32 bits, with no race, timing, or memory-layout precondition for the corruption itself. The attacker fully controls the program text, the returned pointer type, and the dereference offset. PR:L - Loading a subprog-containing SOCKET_FILTER/CGROUP_SKB program needs no capability at all when kernel.unprivileged_bpf_disabled=0, a supported and widely-deployed setting (and the default when CONFIG_BPF_UNPRIV_DEFAULT_OFF=n, common on vendor/embedded LoongArch kernels). Otherwise only CAP_BPF is required, which is by design not root-equivalent and is exactly the low-privilege principal the verifier is supposed to contain. UI:N - The attacker loads the program and triggers it entirely on their own — e.g. attaching a socket filter to their own socket and sending a loopback packet. No victim action is involved. S:U - The corruption and its consequences are confined to the kernel's own security authority; there is no VM, IOMMU, or sandbox boundary crossed. This is standard in-kernel privilege escalation territory. C:H - The caller dereferences a verifier-blessed but JIT-corrupted pointer, giving a BPF_LDX read at an attacker-influenced wild address that can land in mapped kernel memory (vmemmap/KFENCE region for bit31-set values); the loaded bytes can be stashed into a BPF map and read out from userspace, yielding kernel memory disclosure. I:H - The identical primitive works in the store direction — BPF_STX/BPF_ST through the corrupted R0 writes fully attacker-controlled 8-byte values at an attacker-chosen displacement, an out-of-bounds kernel write leverageable for control-flow hijacking. A:H - The upstream commit documents a confirmed kernel panic at the ld.bu instruction from the in-tree verifier test, and the wild-pointer dereference reliably oopses whenever the corrupted address is unmapped.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8382e92f90b601acf6d426121e6f4991502e767d to < d99845f672cce0b610f7c51248ef95d7df63927e (affected · git)0c8d50501bc13cacecc19caaddc10db372592a39 to < 7df2696256a034405d3c5a71b3a4c54725de4404 (affected · git)d5d83242a1d778ceb6d8b07c6b491cf7483ca112 to < 223d565d8892481684091cfbaf3466f2b0e289d3 (affected · git)73c359d1d356cf10236ccd358bd55edab33e9424 to < 780628a780b622759d9e5adc76d15432144da1a3 (affected · git)73c359d1d356cf10236ccd358bd55edab33e9424 to < 996e90ab446641553e8e21707b38b9709605e0e0 (affected · git)73c359d1d356cf10236ccd358bd55edab33e9424 to < 60f3caff1492e5b8616b9578c4bedb5c0a88ed14 (affected · git)3b75f627b73d96787a493e2f1187543ba9c056a4 (affected · git)6.1.120 to < 6.1.191 (affected · semver)6.6.64 to < 6.6.87 (affected · semver)6.12.2 to < 6.12.23 (affected · semver)6.11.11 to < 6.12 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.13 (affected)0 to < 6.13 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.87 through 6.6.* (unaffected · semver)6.12.23 through 6.12.* (unaffected · semver)6.13.11 through 6.13.* (unaffected · semver)6.14.2 through 6.14.* (unaffected · semver)6.15 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

LoongArch: BPF: Don't override subprog's return value

Provenance

Schema
5.2
Searchable
yes
Content hash
78ccd1619855a9953e121572713c1e300f3f89a7d36384af3aecabe6e5258e0b
Ingested
30 Oct 2026, 12:31:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected