# CVE-2025-38464: tipc: Fix use-after-free in tipc\_conn\_close().

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-25T15:27:46.708Z
- **Modified:** 2026-08-05T12:02:06.899Z

## Who should check

- Anyone running Linux \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 03dcdd2558e1e55bf843822fe4363dcb48743f2b; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 15a6f4971e2f157d57e09ea748d1fbc714277aa4; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< dab8ded2e5ff41012a6ff400b44dbe76ccf3592a; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 1dbf7cd2454a28b1da700085b99346b5445aeabb; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< be4b8392da7978294f2f368799d29dd509fb6c4d; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 3b89e17b2fd64012682bed158d9eb3d2e96dec42; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 667eeab4999e981c96b447a4df5f20bdf5c26f13
- Anyone running Linux 3.11

## Description

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

tipc: Fix use-after-free in tipc\_conn\_close().

syzbot reported a null-ptr-deref in tipc\_conn\_close() during netns
dismantle. \[0\]

tipc\_topsrv\_stop() iterates tipc\_net(net)-\>topsrv-\>conn\_idr and calls
tipc\_conn\_close() for each tipc\_conn.

The problem is that tipc\_conn\_close() is called after releasing the
IDR lock.

At the same time, there might be tipc\_conn\_recv\_work() running and it
could call tipc\_conn\_close() for the same tipc\_conn and release its
last -\>kref.

Once we release the IDR lock in tipc\_topsrv\_stop(), there is no
guarantee that the tipc\_conn is alive.

Let's hold the ref before releasing the lock and put the ref after
tipc\_conn\_close() in tipc\_topsrv\_stop().

\[0\]:
BUG: KASAN: use-after-free in tipc\_conn\_close+0x122/0x140 net/tipc/topsrv.c:165
Read of size 8 at addr ffff888099305a08 by task kworker/u4:3/435

CPU: 0 PID: 435 Comm: kworker/u4:3 Not tainted 4.19.204-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup\_net
Call Trace:
 \_\_dump\_stack lib/dump\_stack.c:77 \[inline\]
 dump\_stack+0x1fc/0x2ef lib/dump\_stack.c:118
 print\_address\_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan\_report\_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan\_report mm/kasan/report.c:412 \[inline\]
 \_\_asan\_report\_load8\_noabort+0x88/0x90 mm/kasan/report.c:433
 tipc\_conn\_close+0x122/0x140 net/tipc/topsrv.c:165
 tipc\_topsrv\_stop net/tipc/topsrv.c:701 \[inline\]
 tipc\_topsrv\_exit\_net+0x27b/0x5c0 net/tipc/topsrv.c:722
 ops\_exit\_list+0xa5/0x150 net/core/net\_namespace.c:153
 cleanup\_net+0x3b4/0x8b0 net/core/net\_namespace.c:553
 process\_one\_work+0x864/0x1570 kernel/workqueue.c:2153
 worker\_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret\_from\_fork+0x24/0x30 arch/x86/entry/entry\_64.S:415

Allocated by task 23:
 kmem\_cache\_alloc\_trace+0x12f/0x380 mm/slab.c:3625
 kmalloc include/linux/slab.h:515 \[inline\]
 kzalloc include/linux/slab.h:709 \[inline\]
 tipc\_conn\_alloc+0x43/0x4f0 net/tipc/topsrv.c:192
 tipc\_topsrv\_accept+0x1b5/0x280 net/tipc/topsrv.c:470
 process\_one\_work+0x864/0x1570 kernel/workqueue.c:2153
 worker\_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret\_from\_fork+0x24/0x30 arch/x86/entry/entry\_64.S:415

Freed by task 23:
 \_\_cache\_free mm/slab.c:3503 \[inline\]
 kfree+0xcc/0x210 mm/slab.c:3822
 tipc\_conn\_kref\_release net/tipc/topsrv.c:150 \[inline\]
 kref\_put include/linux/kref.h:70 \[inline\]
 conn\_put+0x2cd/0x3a0 net/tipc/topsrv.c:155
 process\_one\_work+0x864/0x1570 kernel/workqueue.c:2153
 worker\_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret\_from\_fork+0x24/0x30 arch/x86/entry/entry\_64.S:415

The buggy address belongs to the object at ffff888099305a00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes inside of
 512-byte region \[ffff888099305a00, ffff888099305c00)
The buggy address belongs to the page:
page:ffffea000264c140 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea00028b6b88 ffffea0002cd2b08 ffff88813bff0940
raw: 0000000000000000 ffff888099305000 0000000100000006 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff888099305900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888099305980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
\>ffff888099305a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff888099305a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888099305b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb

## Affected and fixed versions

- Linux: \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 03dcdd2558e1e55bf843822fe4363dcb48743f2b; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 15a6f4971e2f157d57e09ea748d1fbc714277aa4; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< dab8ded2e5ff41012a6ff400b44dbe76ccf3592a; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 1dbf7cd2454a28b1da700085b99346b5445aeabb; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< be4b8392da7978294f2f368799d29dd509fb6c4d; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 3b89e17b2fd64012682bed158d9eb3d2e96dec42; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 667eeab4999e981c96b447a4df5f20bdf5c26f13 (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38464.md
Affected: Linux >= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, < 03dcdd2558e1e55bf843822fe4363dcb48743f2b; >= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, < 15a6f4971e2f157d57e09ea748d1fbc714277aa4; >= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, < dab8ded2e5ff41012a6ff400b44dbe76ccf3592a; >= c5fa7b3cf3cb22e4ac60485…
Fixed in: Linux 03dcdd2558e1e55bf843822fe4363dcb48743f2b, Linux 15a6f4971e2f157d57e09ea748d1fbc714277aa4, Linux 1dbf7cd2454a28b1da700085b99346b5445aeabb, Linux 50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50, Linux 3b89e17b2fd64012682bed158d9eb3d2e96dec42, Linux 667eeab4999e981c96b447a4df5f20bdf5c26f13

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

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

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

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

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

Linux \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 03dcdd2558e1e55bf843822fe4363dcb48743f2b; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 15a6f4971e2f157d57e09ea748d1fbc714277aa4; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< dab8ded2e5ff41012a6ff400b44dbe76ccf3592a; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 1dbf7cd2454a28b1da700085b99346b5445aeabb; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< be4b8392da7978294f2f368799d29dd509fb6c4d; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 3b89e17b2fd64012682bed158d9eb3d2e96dec42; \>= c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f, \< 667eeab4999e981c96b447a4df5f20bdf5c26f13; Linux 3.11.

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

Yes. Fixed in Linux 03dcdd2558e1e55bf843822fe4363dcb48743f2b, Linux 15a6f4971e2f157d57e09ea748d1fbc714277aa4, Linux 1dbf7cd2454a28b1da700085b99346b5445aeabb, Linux 50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50, Linux 3b89e17b2fd64012682bed158d9eb3d2e96dec42, Linux 667eeab4999e981c96b447a4df5f20bdf5c26f13. Upgrade Linux to 667eeab4999e981c96b447a4df5f20bdf5c26f13 or later.

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

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/03dcdd2558e1e55bf843822fe4363dcb48743f2b>
- patch: <https://git.kernel.org/stable/c/15a6f4971e2f157d57e09ea748d1fbc714277aa4>
- patch: <https://git.kernel.org/stable/c/dab8ded2e5ff41012a6ff400b44dbe76ccf3592a>
- patch: <https://git.kernel.org/stable/c/1dbf7cd2454a28b1da700085b99346b5445aeabb>
- patch: <https://git.kernel.org/stable/c/be4b8392da7978294f2f368799d29dd509fb6c4d>
- patch: <https://git.kernel.org/stable/c/50aa2d121bc2cfe2d825f8a331ea75dfaaab6a50>
- patch: <https://git.kernel.org/stable/c/3b89e17b2fd64012682bed158d9eb3d2e96dec42>
- patch: <https://git.kernel.org/stable/c/667eeab4999e981c96b447a4df5f20bdf5c26f13>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.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-38464>

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