# CVE-2025-68813: ipvs: fix ipv4 null-ptr-deref in route error path

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-01-13T15:29:18.483Z
- **Modified:** 2026-10-19T19:17:06.470Z

## Who should check

- Anyone running Linux \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< dd72a93c80408f06327dd2d956eb1a656d0b5903; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 312d7cd88882fc6cadcc08b02287497aaaf94bcd; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< cdeff10851c37a002d87a035818ebd60fdb74447; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 4729ff0581fbb7ad098b6153b76b6f5aac94618a; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 25ab24df31f7af843c96a38e0781b9165216e1a8; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 689a627d14788ad772e0fa24c2e57a23dbc7ce90; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< ad891bb3d079a46a821bf2b8867854645191bab0; 6c2fa855d8178699706b1192db2f1f8102b0ba1e; fbf569d2beee2a4a7a0bc8b619c26101d1211a88; ff71f99d5fb2daf54340e8b290d0bc4e6b4c1d38; …
- Anyone running Linux 5.1

## Description

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

ipvs: fix ipv4 null-ptr-deref in route error path

The IPv4 code path in \_\_ip\_vs\_get\_out\_rt() calls dst\_link\_failure()
without ensuring skb-\>dev is set, leading to a NULL pointer dereference
in fib\_compute\_spec\_dst() when ipv4\_link\_failure() attempts to send
ICMP destination unreachable messages.

The issue emerged after commit ed0de45a1008 ("ipv4: recompile ip options
in ipv4\_link\_failure") started calling \_\_ip\_options\_compile() from
ipv4\_link\_failure(). This code path eventually calls fib\_compute\_spec\_dst()
which dereferences skb-\>dev. An attempt was made to fix the NULL skb-\>dev
dereference in commit 0113d9c9d1cc ("ipv4: fix null-deref in
ipv4\_link\_failure"), but it only addressed the immediate dev\_net(skb-\>dev)
dereference by using a fallback device. The fix was incomplete because
fib\_compute\_spec\_dst() later in the call chain still accesses skb-\>dev
directly, which remains NULL when IPVS calls dst\_link\_failure().

The crash occurs when:
1. IPVS processes a packet in NAT mode with a misconfigured destination
2. Route lookup fails in \_\_ip\_vs\_get\_out\_rt() before establishing a route
3. The error path calls dst\_link\_failure(skb) with skb-\>dev == NULL
4. ipv4\_link\_failure() → ipv4\_send\_dest\_unreach() →
   \_\_ip\_options\_compile() → fib\_compute\_spec\_dst()
5. fib\_compute\_spec\_dst() dereferences NULL skb-\>dev

Apply the same fix used for IPv6 in commit 326bf17ea5d4 ("ipvs: fix
ipv6 route unreach panic"): set skb-\>dev from skb\_dst(skb)-\>dev before
calling dst\_link\_failure().

KASAN: null-ptr-deref in range \[0x0000000000000328-0x000000000000032f\]
CPU: 1 PID: 12732 Comm: syz.1.3469 Not tainted 6.6.114 \#2
RIP: 0010:\_\_in\_dev\_get\_rcu include/linux/inetdevice.h:233
RIP: 0010:fib\_compute\_spec\_dst+0x17a/0x9f0 net/ipv4/fib\_frontend.c:285
Call Trace:
  \<TASK\>
  spec\_dst\_fill net/ipv4/ip\_options.c:232
  spec\_dst\_fill net/ipv4/ip\_options.c:229
  \_\_ip\_options\_compile+0x13a1/0x17d0 net/ipv4/ip\_options.c:330
  ipv4\_send\_dest\_unreach net/ipv4/route.c:1252
  ipv4\_link\_failure+0x702/0xb80 net/ipv4/route.c:1265
  dst\_link\_failure include/net/dst.h:437
  \_\_ip\_vs\_get\_out\_rt+0x15fd/0x19e0 net/netfilter/ipvs/ip\_vs\_xmit.c:412
  ip\_vs\_nat\_xmit+0x1d8/0xc80 net/netfilter/ipvs/ip\_vs\_xmit.c:764

## Affected and fixed versions

- Linux: \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< dd72a93c80408f06327dd2d956eb1a656d0b5903; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 312d7cd88882fc6cadcc08b02287497aaaf94bcd; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< cdeff10851c37a002d87a035818ebd60fdb74447; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 4729ff0581fbb7ad098b6153b76b6f5aac94618a; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 25ab24df31f7af843c96a38e0781b9165216e1a8; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 689a627d14788ad772e0fa24c2e57a23dbc7ce90; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< ad891bb3d079a46a821bf2b8867854645191bab0; 6c2fa855d8178699706b1192db2f1f8102b0ba1e; fbf569d2beee2a4a7a0bc8b619c26101d1211a88; ff71f99d5fb2daf54340e8b290d0bc4e6b4c1d38; … (cvelist)
- Linux: 5.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-68813. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68813.md
Affected: Linux >= ed0de45a1008991fdaa27a0152befcb74d126a8b, < dd72a93c80408f06327dd2d956eb1a656d0b5903; >= ed0de45a1008991fdaa27a0152befcb74d126a8b, < 312d7cd88882fc6cadcc08b02287497aaaf94bcd; >= ed0de45a1008991fdaa27a0152befcb74d126a8b, < cdeff10851c37a002d87a035818ebd60fdb74447; >= ed0de45a1008991fdaa27a0…
Fixed in: Linux 312d7cd88882fc6cadcc08b02287497aaaf94bcd, Linux 4729ff0581fbb7ad098b6153b76b6f5aac94618a, Linux 25ab24df31f7af843c96a38e0781b9165216e1a8, Linux 689a627d14788ad772e0fa24c2e57a23dbc7ce90

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< dd72a93c80408f06327dd2d956eb1a656d0b5903; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 312d7cd88882fc6cadcc08b02287497aaaf94bcd; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< cdeff10851c37a002d87a035818ebd60fdb74447; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 4729ff0581fbb7ad098b6153b76b6f5aac94618a; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 25ab24df31f7af843c96a38e0781b9165216e1a8; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< 689a627d14788ad772e0fa24c2e57a23dbc7ce90; \>= ed0de45a1008991fdaa27a0152befcb74d126a8b, \< ad891bb3d079a46a821bf2b8867854645191bab0; 6c2fa855d8178699706b1192db2f1f8102b0ba1e; fbf569d2beee2a4a7a0bc8b619c26101d1211a88; ff71f99d5fb2daf54340e8b290d0bc4e6b4c1d38; …; Linux 5.1.

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

Yes. Fixed in Linux 312d7cd88882fc6cadcc08b02287497aaaf94bcd, Linux 4729ff0581fbb7ad098b6153b76b6f5aac94618a, Linux 25ab24df31f7af843c96a38e0781b9165216e1a8, Linux 689a627d14788ad772e0fa24c2e57a23dbc7ce90. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/dd72a93c80408f06327dd2d956eb1a656d0b5903>
- other: <https://git.kernel.org/stable/c/312d7cd88882fc6cadcc08b02287497aaaf94bcd>
- other: <https://git.kernel.org/stable/c/cdeff10851c37a002d87a035818ebd60fdb74447>
- other: <https://git.kernel.org/stable/c/4729ff0581fbb7ad098b6153b76b6f5aac94618a>
- other: <https://git.kernel.org/stable/c/25ab24df31f7af843c96a38e0781b9165216e1a8>
- other: <https://git.kernel.org/stable/c/689a627d14788ad772e0fa24c2e57a23dbc7ce90>
- other: <https://git.kernel.org/stable/c/ad891bb3d079a46a821bf2b8867854645191bab0>

## 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-68813>

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