# CVE-2025-38723: LoongArch: BPF: Fix jump offset calculation in tailcall

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-09-04T15:33:16.547Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 1a782fa32e644aa9fbae6c8488f3e61221ac96e1; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 17c010fe45def335fe03a0718935416b04c7f349; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f83d469e16bb1f75991ca67c56786fb2aaa42bea; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 9262e3e04621558e875eb5afb5e726b648cd5949; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3
- Anyone running Linux 6.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: BPF: Fix jump offset calculation in tailcall

The extra pass of bpf\_int\_jit\_compile() skips JIT context initialization
which essentially skips offset calculation leaving out\_offset = -1, so
the jmp\_offset in emit\_bpf\_tail\_call is calculated by

"\#define jmp\_offset (out\_offset - (cur\_offset))"

is a negative number, which is wrong. The final generated assembly are
as follow.

54:	bgeu        	$a2, $t1, -8	    \# 0x0000004c
58:	addi.d      	$a6, $s5, -1
5c:	bltz        	$a6, -16	    \# 0x0000004c
60:	alsl.d      	$t2, $a2, $a1, 0x3
64:	ld.d        	$t2, $t2, 264
68:	beq         	$t2, $zero, -28	    \# 0x0000004c

Before apply this patch, the follow test case will reveal soft lock issues.

cd tools/testing/selftests/bpf/
./test\_progs --allow=tailcalls/tailcall\_bpf2bpf\_1

dmesg:
watchdog: BUG: soft lockup - CPU\#2 stuck for 26s! \[test\_progs:25056\]

## Affected and fixed versions

- Linux: \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 1a782fa32e644aa9fbae6c8488f3e61221ac96e1; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 17c010fe45def335fe03a0718935416b04c7f349; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f83d469e16bb1f75991ca67c56786fb2aaa42bea; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 9262e3e04621558e875eb5afb5e726b648cd5949; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38723. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38723.md
Affected: Linux >= 5dc615520c4dfb358245680f1904bad61116648e, < 1a782fa32e644aa9fbae6c8488f3e61221ac96e1; >= 5dc615520c4dfb358245680f1904bad61116648e, < 17c010fe45def335fe03a0718935416b04c7f349; >= 5dc615520c4dfb358245680f1904bad61116648e, < f83d469e16bb1f75991ca67c56786fb2aaa42bea; >= 5dc615520c4dfb358245680…
Fixed in: Linux 1a782fa32e644aa9fbae6c8488f3e61221ac96e1, Linux 17c010fe45def335fe03a0718935416b04c7f349, Linux 9262e3e04621558e875eb5afb5e726b648cd5949

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38723 being exploited?

There is no confirmed exploitation: CVE-2025-38723 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38723?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38723?

Linux \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 1a782fa32e644aa9fbae6c8488f3e61221ac96e1; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 17c010fe45def335fe03a0718935416b04c7f349; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f83d469e16bb1f75991ca67c56786fb2aaa42bea; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< 9262e3e04621558e875eb5afb5e726b648cd5949; \>= 5dc615520c4dfb358245680f1904bad61116648e, \< cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3; Linux 6.1.

### Is there a fix for CVE-2025-38723?

Yes. Fixed in Linux 1a782fa32e644aa9fbae6c8488f3e61221ac96e1, Linux 17c010fe45def335fe03a0718935416b04c7f349, Linux 9262e3e04621558e875eb5afb5e726b648cd5949. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38723?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1a782fa32e644aa9fbae6c8488f3e61221ac96e1>
- patch: <https://git.kernel.org/stable/c/17c010fe45def335fe03a0718935416b04c7f349>
- patch: <https://git.kernel.org/stable/c/f83d469e16bb1f75991ca67c56786fb2aaa42bea>
- patch: <https://git.kernel.org/stable/c/f2b5e50cc04d7a049b385bc1c93b9cbf5f10c94f>
- patch: <https://git.kernel.org/stable/c/9262e3e04621558e875eb5afb5e726b648cd5949>
- patch: <https://git.kernel.org/stable/c/cd39d9e6b7e4c58fa77783e7aedf7ada51d02ea3>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38723>

HTML: <https://flawdb.com/CVE-2025-38723> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38723>
