# CVE-2026-23427: ksmbd: fix use-after-free in durable v2 replay of active file handles

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-04-03T15:15:14.183Z
- **Modified:** 2026-08-05T12:21:40.186Z

## Who should check

- Anyone running Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< b0158d9d6f4ec5941e49a0b812735db2844f9975; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 568a25fd7bcdfb2790f7d42aa2a440dca4435c96; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 9b0792c3eacf01e67f356d6ef9707b0ae5022419; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b425e4d0eb321a1116ddbf39636333181675d8f4; \>= 6.6.32, \< 6.6.130
- Anyone running Linux 6.9

## Description

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

ksmbd: fix use-after-free in durable v2 replay of active file handles

parse\_durable\_handle\_context() unconditionally assigns dh\_info-\>fp-\>conn
to the current connection when handling a DURABLE\_REQ\_V2 context with
SMB2\_FLAGS\_REPLAY\_OPERATION. ksmbd\_lookup\_fd\_cguid() does not filter by
fp-\>conn, so it returns file handles that are already actively connected.
The unconditional overwrite replaces fp-\>conn, and when the overwriting
connection is subsequently freed, \_\_ksmbd\_close\_fd() dereferences the
stale fp-\>conn via spin\_lock(&fp-\>conn-\>llist\_lock), causing a
use-after-free.

KASAN report:

\[    7.349357\] ==================================================================
\[    7.349607\] BUG: KASAN: slab-use-after-free in \_raw\_spin\_lock+0x75/0xe0
\[    7.349811\] Write of size 4 at addr ffff8881056ac18c by task kworker/1:2/108
\[    7.350010\]
\[    7.350064\] CPU: 1 UID: 0 PID: 108 Comm: kworker/1:2 Not tainted 7.0.0-rc3+ \#58 PREEMPTLAZY
\[    7.350068\] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch\_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[    7.350070\] Workqueue: ksmbd-io handle\_ksmbd\_work
\[    7.350083\] Call Trace:
\[    7.350087\]  \<TASK\>
\[    7.350087\]  dump\_stack\_lvl+0x64/0x80
\[    7.350094\]  print\_report+0xce/0x660
\[    7.350100\]  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
\[    7.350101\]  ? \_\_pfx\_\_\_mod\_timer+0x10/0x10
\[    7.350106\]  ? \_raw\_spin\_lock+0x75/0xe0
\[    7.350108\]  kasan\_report+0xce/0x100
\[    7.350109\]  ? \_raw\_spin\_lock+0x75/0xe0
\[    7.350114\]  kasan\_check\_range+0x105/0x1b0
\[    7.350116\]  \_raw\_spin\_lock+0x75/0xe0
\[    7.350118\]  ? \_\_pfx\_\_raw\_spin\_lock+0x10/0x10
\[    7.350119\]  ? \_\_call\_rcu\_common.constprop.0+0x25e/0x780
\[    7.350125\]  ? close\_id\_del\_oplock+0x2cc/0x4e0
\[    7.350128\]  \_\_ksmbd\_close\_fd+0x27f/0xaf0
\[    7.350131\]  ksmbd\_close\_fd+0x135/0x1b0
\[    7.350133\]  smb2\_close+0xb19/0x15b0
\[    7.350142\]  ? \_\_pfx\_smb2\_close+0x10/0x10
\[    7.350143\]  ? xas\_load+0x18/0x270
\[    7.350146\]  ? \_raw\_spin\_lock+0x84/0xe0
\[    7.350148\]  ? \_\_pfx\_\_raw\_spin\_lock+0x10/0x10
\[    7.350150\]  ? \_raw\_spin\_unlock+0xe/0x30
\[    7.350151\]  ? ksmbd\_smb2\_check\_message+0xeb2/0x24c0
\[    7.350153\]  ? ksmbd\_tree\_conn\_lookup+0xcd/0xf0
\[    7.350154\]  handle\_ksmbd\_work+0x40f/0x1080
\[    7.350156\]  process\_one\_work+0x5fa/0xef0
\[    7.350162\]  ? assign\_work+0x122/0x3e0
\[    7.350163\]  worker\_thread+0x54b/0xf70
\[    7.350165\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[    7.350166\]  kthread+0x346/0x470
\[    7.350170\]  ? recalc\_sigpending+0x19b/0x230
\[    7.350176\]  ? \_\_pfx\_kthread+0x10/0x10
\[    7.350178\]  ret\_from\_fork+0x4fb/0x6c0
\[    7.350183\]  ? \_\_pfx\_ret\_from\_fork+0x10/0x10
\[    7.350185\]  ? \_\_switch\_to+0x36c/0xbe0
\[    7.350188\]  ? \_\_pfx\_kthread+0x10/0x10
\[    7.350190\]  ret\_from\_fork\_asm+0x1a/0x30
\[    7.350197\]  \</TASK\>
\[    7.350197\]
\[    7.355160\] Allocated by task 123:
\[    7.355261\]  kasan\_save\_stack+0x33/0x60
\[    7.355373\]  kasan\_save\_track+0x14/0x30
\[    7.355484\]  \_\_kasan\_kmalloc+0x8f/0xa0
\[    7.355593\]  ksmbd\_conn\_alloc+0x44/0x6d0
\[    7.355711\]  ksmbd\_kthread\_fn+0x243/0xd70
\[    7.355839\]  kthread+0x346/0x470
\[    7.355942\]  ret\_from\_fork+0x4fb/0x6c0
\[    7.356051\]  ret\_from\_fork\_asm+0x1a/0x30
\[    7.356164\]
\[    7.356214\] Freed by task 134:
\[    7.356305\]  kasan\_save\_stack+0x33/0x60
\[    7.356416\]  kasan\_save\_track+0x14/0x30
\[    7.356527\]  kasan\_save\_free\_info+0x3b/0x60
\[    7.356646\]  \_\_kasan\_slab\_free+0x43/0x70
\[    7.356761\]  kfree+0x1ca/0x430
\[    7.356862\]  ksmbd\_tcp\_disconnect+0x59/0xe0
\[    7.356993\]  ksmbd\_conn\_handler\_loop+0x77e/0xd40
\[    7.357138\]  kthread+0x346/0x470
\[    7.357240\]  ret\_from\_fork+0x4fb/0x6c0
\[    7.357350\]  ret\_from\_fork\_asm+0x1a/0x30
\[    7.357463\]
\[    7.357513\] The buggy address belongs to the object at ffff8881056ac000
\[    7.357513\]  which belongs to the cache kmalloc-1k of size 1024
\[    7.357857\] The buggy address is located 396 bytes inside of
\[    7.357857\]  freed 1024-byte region 
---truncated---

## Affected and fixed versions

- Linux: \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< b0158d9d6f4ec5941e49a0b812735db2844f9975; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 568a25fd7bcdfb2790f7d42aa2a440dca4435c96; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 9b0792c3eacf01e67f356d6ef9707b0ae5022419; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b425e4d0eb321a1116ddbf39636333181675d8f4; \>= 6.6.32, \< 6.6.130 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.130 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23427. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23427.md
Affected: Linux >= 8df4bcdb0a4232192b2445256c39b787d58ef14d, < b0158d9d6f4ec5941e49a0b812735db2844f9975; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < 568a25fd7bcdfb2790f7d42aa2a440dca4435c96; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2; >= c8efcc786146a951091588e…
Fixed in: Linux 568a25fd7bcdfb2790f7d42aa2a440dca4435c96, Linux 9b0792c3eacf01e67f356d6ef9707b0ae5022419, Linux 6.6.130

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-2026-23427 being exploited?

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

### How serious is CVE-2026-23427?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-23427?

Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< b0158d9d6f4ec5941e49a0b812735db2844f9975; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 568a25fd7bcdfb2790f7d42aa2a440dca4435c96; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 9b0792c3eacf01e67f356d6ef9707b0ae5022419; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< b425e4d0eb321a1116ddbf39636333181675d8f4; \>= 6.6.32, \< 6.6.130; Linux 6.9.

### Is there a fix for CVE-2026-23427?

Yes. Fixed in Linux 568a25fd7bcdfb2790f7d42aa2a440dca4435c96, Linux 9b0792c3eacf01e67f356d6ef9707b0ae5022419, Linux 6.6.130. Upgrade Linux to 6.6.130 or later.

### How do I check if I'm affected by CVE-2026-23427?

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/b0158d9d6f4ec5941e49a0b812735db2844f9975>
- patch: <https://git.kernel.org/stable/c/568a25fd7bcdfb2790f7d42aa2a440dca4435c96>
- patch: <https://git.kernel.org/stable/c/a5828c14a9e3d5eeed0bcc0a58f0f3fbca0cdcb2>
- patch: <https://git.kernel.org/stable/c/9b0792c3eacf01e67f356d6ef9707b0ae5022419>
- patch: <https://git.kernel.org/stable/c/b425e4d0eb321a1116ddbf39636333181675d8f4>

## 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-2026-23427>

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