# CVE-2025-39748: bpf: Forget ranges when refining tnum after JSET

> 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-11T16:52:20.534Z
- **Modified:** 2026-11-10T13:17:49.757Z

## Who should check

- Anyone running Linux \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 22191359f8454b0be082c3b126f86bcbea0f1318; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< c29dd8336236a4deb75596b52d2dd16ccc4a380d; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 591c788d16046edb0220800bf1819554af5853ce; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 0643aa2468192a4d81326e8e76543854870b1ee2; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< f01e06930444cab289a8783017af9b64255bd103; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 2fd0c26bacd90ef26522bd3169000a4715bf151f; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 80a6b11862a7cfdf691e8f9faee89cfea219f098; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 6279846b9b2532e1b04559ef8bd0dec049f29383
- Anyone running Linux 5.0

## Description

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

bpf: Forget ranges when refining tnum after JSET

Syzbot reported a kernel warning due to a range invariant violation on
the following BPF program.

  0: call bpf\_get\_netns\_cookie
  1: if r0 == 0 goto \<exit\>
  2: if r0 & Oxffffffff goto \<exit\>

The issue is on the path where we fall through both jumps.

That path is unreachable at runtime: after insn 1, we know r0 != 0, but
with the sign extension on the jset, we would only fallthrough insn 2
if r0 == 0. Unfortunately, is\_branch\_taken() isn't currently able to
figure this out, so the verifier walks all branches. The verifier then
refines the register bounds using the second condition and we end
up with inconsistent bounds on this unreachable path:

  1: if r0 == 0 goto \<exit\>
    r0: u64=\[0x1, 0xffffffffffffffff\] var\_off=(0, 0xffffffffffffffff)
  2: if r0 & 0xffffffff goto \<exit\>
    r0 before reg\_bounds\_sync: u64=\[0x1, 0xffffffffffffffff\] var\_off=(0, 0)
    r0 after reg\_bounds\_sync:  u64=\[0x1, 0\] var\_off=(0, 0)

Improving the range refinement for JSET to cover all cases is tricky. We
also don't expect many users to rely on JSET given LLVM doesn't generate
those instructions. So instead of improving the range refinement for
JSETs, Eduard suggested we forget the ranges whenever we're narrowing
tnums after a JSET. This patch implements that approach.

## Affected and fixed versions

- Linux: \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 22191359f8454b0be082c3b126f86bcbea0f1318; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< c29dd8336236a4deb75596b52d2dd16ccc4a380d; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 591c788d16046edb0220800bf1819554af5853ce; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 0643aa2468192a4d81326e8e76543854870b1ee2; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< f01e06930444cab289a8783017af9b64255bd103; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 2fd0c26bacd90ef26522bd3169000a4715bf151f; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 80a6b11862a7cfdf691e8f9faee89cfea219f098; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 6279846b9b2532e1b04559ef8bd0dec049f29383 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 6279846b9b2532e1b04559ef8bd0dec049f29383 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39748.md
Affected: Linux >= 960ea056561a08e2b837b2f02d22c53226414a84, < 22191359f8454b0be082c3b126f86bcbea0f1318; >= 960ea056561a08e2b837b2f02d22c53226414a84, < c29dd8336236a4deb75596b52d2dd16ccc4a380d; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 591c788d16046edb0220800bf1819554af5853ce; >= 960ea056561a08e2b837b2f…
Fixed in: Linux 22191359f8454b0be082c3b126f86bcbea0f1318, Linux 591c788d16046edb0220800bf1819554af5853ce, Linux 0643aa2468192a4d81326e8e76543854870b1ee2, Linux 2fd0c26bacd90ef26522bd3169000a4715bf151f, Linux 80a6b11862a7cfdf691e8f9faee89cfea219f098, Linux 6279846b9b2532e1b04559ef8bd0dec049f29383

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-39748 being exploited?

There is no confirmed exploitation: CVE-2025-39748 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-39748?

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

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

Linux \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 22191359f8454b0be082c3b126f86bcbea0f1318; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< c29dd8336236a4deb75596b52d2dd16ccc4a380d; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 591c788d16046edb0220800bf1819554af5853ce; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 0643aa2468192a4d81326e8e76543854870b1ee2; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< f01e06930444cab289a8783017af9b64255bd103; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 2fd0c26bacd90ef26522bd3169000a4715bf151f; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 80a6b11862a7cfdf691e8f9faee89cfea219f098; \>= 960ea056561a08e2b837b2f02d22c53226414a84, \< 6279846b9b2532e1b04559ef8bd0dec049f29383; Linux 5.0.

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

Yes. Fixed in Linux 22191359f8454b0be082c3b126f86bcbea0f1318, Linux 591c788d16046edb0220800bf1819554af5853ce, Linux 0643aa2468192a4d81326e8e76543854870b1ee2, Linux 2fd0c26bacd90ef26522bd3169000a4715bf151f, Linux 80a6b11862a7cfdf691e8f9faee89cfea219f098, Linux 6279846b9b2532e1b04559ef8bd0dec049f29383. Upgrade Linux to 6279846b9b2532e1b04559ef8bd0dec049f29383 or later.

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

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/f01e06930444cab289a8783017af9b64255bd103>
- patch: <https://git.kernel.org/stable/c/2fd0c26bacd90ef26522bd3169000a4715bf151f>
- patch: <https://git.kernel.org/stable/c/80a6b11862a7cfdf691e8f9faee89cfea219f098>
- patch: <https://git.kernel.org/stable/c/6279846b9b2532e1b04559ef8bd0dec049f29383>
- other: <https://git.kernel.org/stable/c/22191359f8454b0be082c3b126f86bcbea0f1318>
- other: <https://git.kernel.org/stable/c/c29dd8336236a4deb75596b52d2dd16ccc4a380d>
- other: <https://git.kernel.org/stable/c/591c788d16046edb0220800bf1819554af5853ce>
- other: <https://git.kernel.org/stable/c/0643aa2468192a4d81326e8e76543854870b1ee2>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.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-39748>

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