# CVE-2025-68801: mlxsw: spectrum\_router: Fix neighbour use-after-free

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.21% (percentile 7, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-01-13T15:29:10.349Z
- **Modified:** 2026-10-19T19:17:05.950Z

## Who should check

- Anyone running Linux \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< a2dfe6758fc63e542105bee8b17a3a7485684db0; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< c437fbfd4382412598cdda1f8e2881b523668cc2; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 4a3c569005f42ab5e5b2ad637132a33bf102cc08; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< ed8141b206bdcfd5d0b92c90832eeb77b7a60a0a; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 675c5aeadf6472672c472dc0f26401e4fcfbf254; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 8b0e69763ef948fb872a7767df4be665d18f5fd4
- Anyone running Linux 4.8

## Description

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

mlxsw: spectrum\_router: Fix neighbour use-after-free

We sometimes observe use-after-free when dereferencing a neighbour \[1\].
The problem seems to be that the driver stores a pointer to the
neighbour, but without holding a reference on it. A reference is only
taken when the neighbour is used by a nexthop.

Fix by simplifying the reference counting scheme. Always take a
reference when storing a neighbour pointer in a neighbour entry. Avoid
taking a referencing when the neighbour is used by a nexthop as the
neighbour entry associated with the nexthop already holds a reference.

Tested by running the test that uncovered the problem over 300 times.
Without this patch the problem was reproduced after a handful of
iterations.

\[1\]
BUG: KASAN: slab-use-after-free in mlxsw\_sp\_neigh\_entry\_update+0x2d4/0x310
Read of size 8 at addr ffff88817f8e3420 by task ip/3929

CPU: 3 UID: 0 PID: 3929 Comm: ip Not tainted 6.18.0-rc4-virtme-g36b21a067510 \#3 PREEMPT(full)
Hardware name: Nvidia SN5600/VMOD0013, BIOS 5.13 05/31/2023
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x6f/0xa0
 print\_address\_description.constprop.0+0x6e/0x300
 print\_report+0xfc/0x1fb
 kasan\_report+0xe4/0x110
 mlxsw\_sp\_neigh\_entry\_update+0x2d4/0x310
 mlxsw\_sp\_router\_rif\_gone\_sync+0x35f/0x510
 mlxsw\_sp\_rif\_destroy+0x1ea/0x730
 mlxsw\_sp\_inetaddr\_port\_vlan\_event+0xa1/0x1b0
 \_\_mlxsw\_sp\_inetaddr\_lag\_event+0xcc/0x130
 \_\_mlxsw\_sp\_inetaddr\_event+0xf5/0x3c0
 mlxsw\_sp\_router\_netdevice\_event+0x1015/0x1580
 notifier\_call\_chain+0xcc/0x150
 call\_netdevice\_notifiers\_info+0x7e/0x100
 \_\_netdev\_upper\_dev\_unlink+0x10b/0x210
 netdev\_upper\_dev\_unlink+0x79/0xa0
 vrf\_del\_slave+0x18/0x50
 do\_set\_master+0x146/0x7d0
 do\_setlink.isra.0+0x9a0/0x2880
 rtnl\_newlink+0x637/0xb20
 rtnetlink\_rcv\_msg+0x6fe/0xb90
 netlink\_rcv\_skb+0x123/0x380
 netlink\_unicast+0x4a3/0x770
 netlink\_sendmsg+0x75b/0xc90
 \_\_sock\_sendmsg+0xbe/0x160
 \_\_\_\_sys\_sendmsg+0x5b2/0x7d0
 \_\_\_sys\_sendmsg+0xfd/0x180
 \_\_sys\_sendmsg+0x124/0x1c0
 do\_syscall\_64+0xbb/0xfd0
 entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
\[...\]

Allocated by task 109:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 \_\_kasan\_kmalloc+0x7b/0x90
 \_\_kmalloc\_noprof+0x2c1/0x790
 neigh\_alloc+0x6af/0x8f0
 \_\_\_neigh\_create+0x63/0xe90
 mlxsw\_sp\_nexthop\_neigh\_init+0x430/0x7e0
 mlxsw\_sp\_nexthop\_type\_init+0x212/0x960
 mlxsw\_sp\_nexthop6\_group\_info\_init.constprop.0+0x81f/0x1280
 mlxsw\_sp\_nexthop6\_group\_get+0x392/0x6a0
 mlxsw\_sp\_fib6\_entry\_create+0x46a/0xfd0
 mlxsw\_sp\_router\_fib6\_replace+0x1ed/0x5f0
 mlxsw\_sp\_router\_fib6\_event\_work+0x10a/0x2a0
 process\_one\_work+0xd57/0x1390
 worker\_thread+0x4d6/0xd40
 kthread+0x355/0x5b0
 ret\_from\_fork+0x1d4/0x270
 ret\_from\_fork\_asm+0x11/0x20

Freed by task 154:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 \_\_kasan\_save\_free\_info+0x3b/0x60
 \_\_kasan\_slab\_free+0x43/0x70
 kmem\_cache\_free\_bulk.part.0+0x1eb/0x5e0
 kvfree\_rcu\_bulk+0x1f2/0x260
 kfree\_rcu\_work+0x130/0x1b0
 process\_one\_work+0xd57/0x1390
 worker\_thread+0x4d6/0xd40
 kthread+0x355/0x5b0
 ret\_from\_fork+0x1d4/0x270
 ret\_from\_fork\_asm+0x11/0x20

Last potentially related work creation:
 kasan\_save\_stack+0x30/0x50
 kasan\_record\_aux\_stack+0x8c/0xa0
 kvfree\_call\_rcu+0x93/0x5b0
 mlxsw\_sp\_router\_neigh\_event\_work+0x67d/0x860
 process\_one\_work+0xd57/0x1390
 worker\_thread+0x4d6/0xd40
 kthread+0x355/0x5b0
 ret\_from\_fork+0x1d4/0x270
 ret\_from\_fork\_asm+0x11/0x20

## Affected and fixed versions

- Linux: \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< a2dfe6758fc63e542105bee8b17a3a7485684db0; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< c437fbfd4382412598cdda1f8e2881b523668cc2; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 4a3c569005f42ab5e5b2ad637132a33bf102cc08; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< ed8141b206bdcfd5d0b92c90832eeb77b7a60a0a; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 675c5aeadf6472672c472dc0f26401e4fcfbf254; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 8b0e69763ef948fb872a7767df4be665d18f5fd4 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 8b0e69763ef948fb872a7767df4be665d18f5fd4 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-68801. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68801.md
Affected: Linux >= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, < a2dfe6758fc63e542105bee8b17a3a7485684db0; >= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, < 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc; >= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, < c437fbfd4382412598cdda1f8e2881b523668cc2; >= 6cf3c971dc84cb36579515d…
Fixed in: Linux 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc, Linux 4a3c569005f42ab5e5b2ad637132a33bf102cc08, Linux 675c5aeadf6472672c472dc0f26401e4fcfbf254, Linux 8b0e69763ef948fb872a7767df4be665d18f5fd4

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< a2dfe6758fc63e542105bee8b17a3a7485684db0; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< c437fbfd4382412598cdda1f8e2881b523668cc2; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 4a3c569005f42ab5e5b2ad637132a33bf102cc08; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< ed8141b206bdcfd5d0b92c90832eeb77b7a60a0a; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 675c5aeadf6472672c472dc0f26401e4fcfbf254; \>= 6cf3c971dc84cb36579515ddb488919b9e9fb6de, \< 8b0e69763ef948fb872a7767df4be665d18f5fd4; Linux 4.8.

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

Yes. Fixed in Linux 9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc, Linux 4a3c569005f42ab5e5b2ad637132a33bf102cc08, Linux 675c5aeadf6472672c472dc0f26401e4fcfbf254, Linux 8b0e69763ef948fb872a7767df4be665d18f5fd4. Upgrade Linux to 8b0e69763ef948fb872a7767df4be665d18f5fd4 or later.

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

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/a2dfe6758fc63e542105bee8b17a3a7485684db0>
- other: <https://git.kernel.org/stable/c/9e0a0d9eeb0dbeba2c83fa837885b19b8b9230fc>
- other: <https://git.kernel.org/stable/c/c437fbfd4382412598cdda1f8e2881b523668cc2>
- other: <https://git.kernel.org/stable/c/4a3c569005f42ab5e5b2ad637132a33bf102cc08>
- other: <https://git.kernel.org/stable/c/ed8141b206bdcfd5d0b92c90832eeb77b7a60a0a>
- other: <https://git.kernel.org/stable/c/675c5aeadf6472672c472dc0f26401e4fcfbf254>
- other: <https://git.kernel.org/stable/c/8b0e69763ef948fb872a7767df4be665d18f5fd4>

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

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