Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-64142

published critical CVSS 3.1 · 9.8

ksmbd: close durable scavenger races against m_fp_list lookups

Published
19 Jul 2026, 15:40:34 UTC
Updated
05 Aug 2026, 12:39:42 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7f0cb478703cbeaddfe5c9101c5c73cd975d1073 to < 3a436932eb397e909d0607d76a8325abd9d85a35 · d484d621d40f4a8b8959008802d79bef3609641b to < 95f072ef934ca00711d510676b8792cbf59a5aae · d484d621d40f4a8b8959008802d79bef3609641b to < 5da69a65b282d2276de22e5194ba0f88c836170c · d484d621d40f4a8b8959008802d79bef3609641b to < 1f8f3246d55f89350a1a67bdf3744b7241048e4e · d484d621d40f4a8b8959008802d79bef3609641b to < bf736184d063da1a552ffeff0481813599a182cc · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.92 through 6.12.* (unaffected · semver) · 6.18.34 through 6.18.* (unaffected · semver) · 7.0.11 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu noble linux-azure-7.0 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-cloud-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-headers-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-azure-7.0-tools-7.0.0-1014 Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-buildinfo-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-cloud-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-gcp-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-gcp-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-headers-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-headers-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-image-unsigned-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-image-unsigned-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-modules-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-modules-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-iwlwifi-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-modules-nvidia-fs-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-headers-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-nvidia-7.0-tools-7.0.0-1016 Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-oracle-7.0 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-headers-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-oracle-7.0-tools-7.0.0-1011 Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-gcp Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-gcp-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-1
Ubuntu noble linux-tools-7.0.0-1011-oracle Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1011-oracle-64k Advisory build 7.0.0-1011.11~24.04.1 USN-8728-3
Ubuntu noble linux-tools-7.0.0-1014-azure Advisory build 7.0.0-1014.14~24.04.1 USN-8728-2
Ubuntu noble linux-tools-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu noble linux-tools-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16~24.04.1 USN-8663-1
Ubuntu resolute linux-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-aws-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-cloud-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-cloud-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-headers-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-fde-tools-7.0.0-1009 Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-azure-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-azure-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-buildinfo-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-buildinfo-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-cloud-tools-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-cloud-tools-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1008-oracle-64k Advisory build 7.0.0-1008.8 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1009-aws Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-aws-64k Advisory build 7.0.0-1009.9 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1009-azure-fde Advisory build 7.0.0-1009.9 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-azure Advisory build 7.0.0-1010.10 USN-8603-1
Ubuntu resolute linux-headers-7.0.0-1010-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-1016-nvidia-64k Advisory build 7.0.0-1016.16 USN-8663-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-headers-7.0.0-2016-nvidia-bos-64k Advisory build 7.0.0-2016.16 USN-8664-1
Ubuntu resolute linux-ibm Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-headers-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-ibm-tools-7.0.0-1010 Advisory build 7.0.0-1010.10 USN-8593-1
Ubuntu resolute linux-image-7.0.0-1015-raspi Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-7.0.0-1015-raspi-realtime Advisory build 7.0.0-1015.15 USN-8618-1
Ubuntu resolute linux-image-unsigned-7.0.0-1008-oracle Advisory build 7.0.0-1008.8 USN-8593-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: close durable scavenger races against m_fp_list lookups ksmbd_durable_scavenger() has two related races against any walker that iterates f_ci->m_fp_list, including ksmbd_lookup_fd_inode() (used by ksmbd_vfs_rename) and the share-mode checks in fs/smb/server/smb_common.c. (1) fp->node list-head reuse. Durable-preserved handles can remain linked on f_ci->m_fp_list after session teardown so share-mode checks still see them while the handle is reconnectable. The scavenger collected expired handles by adding fp->node to a local scavenger_list after removing them from the global durable idr. Because fp->node is the same list_head used by m_fp_list, list_add(&fp->node, &scavenger_list) overwrites the m_fp_list links and corrupts both lists. CONFIG_DEBUG_LIST can report this on the share-mode walk path. (2) Refcount race against m_fp_list walkers. The scavenger qualifies an expired durable handle with atomic_read(&fp->refcount) > 1 and fp->conn under global_ft.lock, removes fp from global_ft, then drops global_ft.lock before unlinking fp from m_fp_list and freeing it. During that gap fp is still linked on m_fp_list with f_state == FP_INITED. ksmbd_lookup_fd_inode() under m_lock read calls ksmbd_fp_get() (atomic_inc_not_zero on refcount that is still 1) and takes a live reference; the scavenger then unlinks and frees fp while the holder owns a reference, leading to UAF on the holder's subsequent ksmbd_fd_put() and on any field reads performed by a concurrent share-mode walker that iterates m_fp_list without taking ksmbd_fp_get() (smb_check_perm_dleases-like paths). Fix both: * Stop reusing fp->node as a scavenger-private list node. Remove one expired handle from global_ft under global_ft.lock, take an explicit transient reference, drop the lock, unlink fp->node from m_fp_list under f_ci->m_lock, then drop both the durable lifetime and transient references with atomic_sub_and_test(2, &fp->refcount). If the scavenger is the last putter the close runs there; otherwise an in-flight holder that already raced through the m_fp_list lookup owns the final close via its ksmbd_fd_put() path. The one-at-a-time disposal can rescan the durable idr when multiple handles expire in the same pass, but durable scavenging is a background expiration path and the final full scan recomputes min_timeout before the next wait. * Clear fp->persistent_id inside __ksmbd_remove_durable_fd() right after idr_remove(), so a delayed final close from a holder that snatched fp does not re-issue idr_remove() on a persistent id that idr_alloc_cyclic() in ksmbd_open_durable_fd() may have already handed out to a brand-new durable handle. * Bypass the per-conn open_files_count decrement in __put_fd_final() when fp is detached from any session table (fp->conn cleared by session_fd_check() at durable preserve -- paired with the volatile_id clear at unpublish, so checking fp->conn alone is sufficient). The walker that owns the final close runs from an unrelated work->conn whose stats.open_files_count never tracked this durable fp; without this guard the holder would underflow that unrelated counter. The two races are folded into one patch because patch (1) alone cleans up the corrupted list but leaves a deterministic UAF window for m_fp_list walkers that the transient-reference and persistent_id discipline in (2) close; bisecting onto an intermediate state would land on a UAF that pre-patch chaos merely made less reproducible. Validation: * CONFIG_DEBUG_LIST coverage for the list_head reuse path. * KASAN-enabled direct SMB2 durable-handle coverage that exercised ksmbd_durable_scavenger() and non-NULL ksmbd_lookup_fd_inode() returns while durable handles expired under concurrent rename lookups, with no KASAN, UAF, list-corruption, ODEBUG, or WARNING reports. ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

9

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The bug is in ksmbd, the in-kernel SMB server reachable over TCP port 445; exploitation is driven by remote SMB2 packets that set up durable handles, tear down sessions, and issue concurrent rename/open operations. AC:L - The attacker controls both sides of the race by opening a durable handle, logging off/disconnecting to enter durable-preserve state, waiting for the configured scavenger timeout, and flooding concurrent SMB2 rename or create requests timed to the scavenger expiration window. PR:N - Exploitation requires only network reachability to ksmbd and normal SMB session authentication (including guest/anonymous shares); no pre-existing OS privileges, capabilities, or local access are needed beyond share-level SMB access obtainable through the protocol itself. UI:N - No victim user interaction is required beyond a server running ksmbd with durable handles enabled; the attacker drives the entire sequence of SMB operations programmatically. S:U - Impact is confined to kernel memory corruption and privilege escalation within the same kernel security boundary; this is not a VM escape or cross-authority boundary bypass. C:H - The refcount race produces a deterministic use-after-free on ksmbd_file structures, and share-mode walkers read fields from freed objects without refcount protection, enabling arbitrary kernel memory disclosure via heap reuse. I:H - Use-after-free on slab-allocated ksmbd_file objects and corruption of m_fp_list linked lists provide memory corruption primitives that can be leveraged for arbitrary kernel writes and control-flow hijacking. A:H - List corruption and use-after-free on kernel linked lists and file handle structures can cause kernel oops, BUG_ON from CONFIG_DEBUG_LIST, or panic, and the scavenger race is repeatable on each durable handle expiration cycle.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7f0cb478703cbeaddfe5c9101c5c73cd975d1073 to < 3a436932eb397e909d0607d76a8325abd9d85a35 (affected · git)d484d621d40f4a8b8959008802d79bef3609641b to < 95f072ef934ca00711d510676b8792cbf59a5aae (affected · git)d484d621d40f4a8b8959008802d79bef3609641b to < 5da69a65b282d2276de22e5194ba0f88c836170c (affected · git)d484d621d40f4a8b8959008802d79bef3609641b to < 1f8f3246d55f89350a1a67bdf3744b7241048e4e (affected · git)d484d621d40f4a8b8959008802d79bef3609641b to < bf736184d063da1a552ffeff0481813599a182cc (affected · git)Default: unaffected Linux · cna
Linux Linux 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.92 through 6.12.* (unaffected · semver)6.18.34 through 6.18.* (unaffected · semver)7.0.11 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

ksmbd: close durable scavenger races against m_fp_list lookups

Provenance

Schema
5.2
Searchable
yes
Content hash
54c293f50db5b7b166c489a32ca5aaa6ee210064e88f65856907c83edb72f3b6
Ingested
23 Sep 2026, 09:25:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected