# CVE-2025-38589: neighbour: Fix null-ptr-deref in neigh\_flush\_dev().

> 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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-08-19T17:03:10.791Z
- **Modified:** 2026-06-17T09:17:10.330Z

## Who should check

- Anyone running Linux \>= f7f52738637f4361c108cad36e23ee98959a9006, \< d9c4328795697ebc392a63fece3901999c09cddd; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 47fbd7f8df19bdfbe334ee83f35568c9a29221ae; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 1bbb76a899486827394530916f01214d049931b3
- Anyone running Linux 6.13

## Description

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

neighbour: Fix null-ptr-deref in neigh\_flush\_dev().

kernel test robot reported null-ptr-deref in neigh\_flush\_dev(). \[0\]

The cited commit introduced per-netdev neighbour list and converted
neigh\_flush\_dev() to use it instead of the global hash table.

One thing we missed is that neigh\_table\_clear() calls neigh\_ifdown()
with NULL dev.

Let's restore the hash table iteration.

Note that IPv6 module is no longer unloadable, so neigh\_table\_clear()
is called only when IPv6 fails to initialise, which is unlikely to
happen.

\[0\]:
IPv6: Attempt to unregister permanent protocol 136
IPv6: Attempt to unregister permanent protocol 17
Oops: general protection fault, probably for non-canonical address 0xdffffc00000001a0: 0000 \[\#1\] SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000d00-0x0000000000000d07\]
CPU: 1 UID: 0 PID: 1 Comm: systemd Tainted: G                T  6.12.0-rc6-01246-gf7f52738637f \#1
Tainted: \[T\]=RANDSTRUCT
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:neigh\_flush\_dev.llvm.6395807810224103582+0x52/0x570
Code: c1 e8 03 42 8a 04 38 84 c0 0f 85 15 05 00 00 31 c0 41 83 3e 0a 0f 94 c0 48 8d 1c c3 48 81 c3 f8 0c 00 00 48 89 d8 48 c1 e8 03 \<42\> 80 3c 38 00 74 08 48 89 df e8 f7 49 93 fe 4c 8b 3b 4d 85 ff 0f
RSP: 0000:ffff88810026f408 EFLAGS: 00010206
RAX: 00000000000001a0 RBX: 0000000000000d00 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffc0631640
RBP: ffff88810026f470 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffffc0625250 R14: ffffffffc0631640 R15: dffffc0000000000
FS:  00007f575cb83940(0000) GS:ffff8883aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f575db40008 CR3: 00000002bf936000 CR4: 00000000000406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 \_\_neigh\_ifdown.llvm.6395807810224103582+0x44/0x390
 neigh\_table\_clear+0xb1/0x268
 ndisc\_cleanup+0x21/0x38 \[ipv6\]
 init\_module+0x2f5/0x468 \[ipv6\]
 do\_one\_initcall+0x1ba/0x628
 do\_init\_module+0x21a/0x530
 load\_module+0x2550/0x2ea0
 \_\_se\_sys\_finit\_module+0x3d2/0x620
 \_\_x64\_sys\_finit\_module+0x76/0x88
 x64\_sys\_call+0x7ff/0xde8
 do\_syscall\_64+0xfb/0x1e8
 entry\_SYSCALL\_64\_after\_hwframe+0x67/0x6f
RIP: 0033:0x7f575d6f2719
Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 06 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fff82a2a268 EFLAGS: 00000246 ORIG\_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000557827b45310 RCX: 00007f575d6f2719
RDX: 0000000000000000 RSI: 00007f575d584efd RDI: 0000000000000004
RBP: 00007f575d584efd R08: 0000000000000000 R09: 0000557827b47b00
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000020000
R13: 0000000000000000 R14: 0000557827b470e0 R15: 00007f575dbb4270
 \</TASK\>
Modules linked in: ipv6(+)

## Affected and fixed versions

- Linux: \>= f7f52738637f4361c108cad36e23ee98959a9006, \< d9c4328795697ebc392a63fece3901999c09cddd; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 47fbd7f8df19bdfbe334ee83f35568c9a29221ae; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 1bbb76a899486827394530916f01214d049931b3 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38589.md
Affected: Linux >= f7f52738637f4361c108cad36e23ee98959a9006, < d9c4328795697ebc392a63fece3901999c09cddd; >= f7f52738637f4361c108cad36e23ee98959a9006, < 47fbd7f8df19bdfbe334ee83f35568c9a29221ae; >= f7f52738637f4361c108cad36e23ee98959a9006, < 1bbb76a899486827394530916f01214d049931b3; Linux 6.13
Fixed in: Linux 47fbd7f8df19bdfbe334ee83f35568c9a29221ae, Linux 1bbb76a899486827394530916f01214d049931b3

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

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

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

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

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

Linux \>= f7f52738637f4361c108cad36e23ee98959a9006, \< d9c4328795697ebc392a63fece3901999c09cddd; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 47fbd7f8df19bdfbe334ee83f35568c9a29221ae; \>= f7f52738637f4361c108cad36e23ee98959a9006, \< 1bbb76a899486827394530916f01214d049931b3; Linux 6.13.

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

Yes. Fixed in Linux 47fbd7f8df19bdfbe334ee83f35568c9a29221ae, Linux 1bbb76a899486827394530916f01214d049931b3. Upgrade Linux to 1bbb76a899486827394530916f01214d049931b3 or later.

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

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/d9c4328795697ebc392a63fece3901999c09cddd>
- patch: <https://git.kernel.org/stable/c/47fbd7f8df19bdfbe334ee83f35568c9a29221ae>
- patch: <https://git.kernel.org/stable/c/1bbb76a899486827394530916f01214d049931b3>

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

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