Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39748

MEDIUM 5.5EPSS 10%

bpf: Forget ranges when refining tnum after JSET

Mitigation

  • Upgrade Linux to 6279846b9b2532e1b04559ef8bd0dec049f29383 or later.

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

Vulnerability facts

Affected
Linux >= 960ea056561a08e2b837b2f02d22c53226414a84, < 22191359f8454b0be082c3b126f86bcbea0f1318; >= 960ea056561a08e2b837b2f02d22c53226414a84, < c29dd8336236a4deb75596b52d2dd16ccc4a380d; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 591c788d16046edb0220800bf1819554af5853ce; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 0643aa2468192a4d81326e8e76543854870b1ee2; >= 960ea056561a08e2b837b2f02d22c53226414a84, < f01e06930444cab289a8783017af9b64255bd103; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 2fd0c26bacd90ef26522bd3169000a4715bf151f; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 80a6b11862a7cfdf691e8f9faee89cfea219f098; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 6279846b9b2532e1b04559ef8bd0dec049f29383; Linux 5.0
Fixed in
Linux 22191359f8454b0be082c3b126f86bcbea0f1318, Linux 591c788d16046edb0220800bf1819554af5853ce, Linux 0643aa2468192a4d81326e8e76543854870b1ee2, Linux 2fd0c26bacd90ef26522bd3169000a4715bf151f, Linux 80a6b11862a7cfdf691e8f9faee89cfea219f098, Linux 6279846b9b2532e1b04559ef8bd0dec049f29383
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 960ea056561a08e2b837b2f02d22c53226414a84, < 22191359f8454b0be082c3b126f86bcbea0f1318; >= 960ea056561a08e2b837b2f02d22c53226414a84, < c29dd8336236a4deb75596b52d2dd16ccc4a380d; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 591c788d16046edb0220800bf1819554af5853ce; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 0643aa2468192a4d81326e8e76543854870b1ee2; >= 960ea056561a08e2b837b2f02d22c53226414a84, < f01e06930444cab289a8783017af9b64255bd103; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 2fd0c26bacd90ef26522bd3169000a4715bf151f; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 80a6b11862a7cfdf691e8f9faee89cfea219f098; >= 960ea056561a08e2b837b2f02d22c53226414a84, < 6279846b9b2532e1b04559ef8bd0dec049f29383—cvelist
Linux5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors