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-31718

published critical CVSS 3.1 · 9.8

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger

Published
01 May 2026, 13:56:12 UTC
Updated
05 Aug 2026, 12:24:49 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux8df4bcdb0a4232192b2445256c39b787d58ef14d to < 0000a7780e0e446a28a273572f6ea8f7f582f694 · c8efcc786146a951091588e5fa7e3c754850cb3c to < e33c65f011980b4ad4abfd93585ec2079856368f · c8efcc786146a951091588e5fa7e3c754850cb3c to < 3d6682726c2d3a46d31dae88b8166786b09b03ad · c8efcc786146a951091588e5fa7e3c754850cb3c to < b34fc42cfe922e551f7a27d3ac3bb016e41d7dd9 · c8efcc786146a951091588e5fa7e3c754850cb3c to < 235e32320a470fcd3998fb3774f2290a0eb302a1 · 6.6.32 to < 6.6.140 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.6.140 through 6.6.* (unaffected · semver) · 6.12.84 through 6.12.* (unaffected · semver) · 6.18.25 through 6.18.* (unaffected · semver) · 7.0.2 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
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu noble linux-aws-6.17 Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.0.7-1.1 OPENSUSE-SU-2026:10793-1
Ubuntu noble linux-aws-6.17-cloud-tools-6.17.0-1019 Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-aws-6.17-headers-6.17.0-1019 Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-aws-6.17-tools-6.17.0-1019 Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-azure-6.17 Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-azure-6.17-cloud-tools-6.17.0-1021 Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-azure-6.17-headers-6.17.0-1021 Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-azure-6.17-tools-6.17.0-1021 Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-buildinfo-6.17.0-1017-realtime Advisory build 6.17.0-1017.19~24.04.1 USN-8490-2
Ubuntu noble linux-buildinfo-6.17.0-1018-oracle Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1018-oracle-64k Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1019-aws Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1019-aws-64k Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1020-gcp Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1020-gcp-64k Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-buildinfo-6.17.0-1021-azure Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-buildinfo-6.17.0-1026-nvidia Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-buildinfo-6.17.0-1026-nvidia-64k Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-buildinfo-6.17.0-1028-oem Advisory build 6.17.0-1028.28 USN-8491-1
Ubuntu noble linux-buildinfo-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-buildinfo-6.17.0-40-generic-64k Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-buildinfo-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-buildinfo-7.0.0-28-generic-64k Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-cloud-tools-6.17.0-1017-realtime Advisory build 6.17.0-1017.19~24.04.1 USN-8490-2
Ubuntu noble linux-cloud-tools-6.17.0-1019-aws Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-cloud-tools-6.17.0-1019-aws-64k Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-cloud-tools-6.17.0-1021-azure Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-cloud-tools-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-cloud-tools-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-gcp-6.17 Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-gcp-6.17-headers-6.17.0-1020 Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-gcp-6.17-tools-6.17.0-1020 Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1017-realtime Advisory build 6.17.0-1017.19~24.04.1 USN-8490-2
Ubuntu noble linux-headers-6.17.0-1018-oracle Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1018-oracle-64k Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1019-aws Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1019-aws-64k Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1020-gcp Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1020-gcp-64k Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-headers-6.17.0-1021-azure Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-headers-6.17.0-1026-nvidia Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-headers-6.17.0-1026-nvidia-64k Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-headers-6.17.0-1028-oem Advisory build 6.17.0-1028.28 USN-8491-1
Ubuntu noble linux-headers-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-headers-6.17.0-40-generic-64k Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-headers-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-headers-7.0.0-28-generic-64k Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-hwe-6.17 Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-hwe-6.17-cloud-tools-6.17.0-40 Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-hwe-6.17-headers-6.17.0-40 Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-hwe-6.17-tools-6.17.0-40 Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-hwe-7.0 Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-hwe-7.0-cloud-tools-7.0.0-28 Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-hwe-7.0-headers-7.0.0-28 Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-hwe-7.0-tools-7.0.0-28 Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-image-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-image-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-image-unsigned-6.17.0-1017-realtime Advisory build 6.17.0-1017.19~24.04.1 USN-8490-2
Ubuntu noble linux-image-unsigned-6.17.0-1018-oracle Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1018-oracle-64k Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1019-aws Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1019-aws-64k Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1020-gcp Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1020-gcp-64k Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-image-unsigned-6.17.0-1021-azure Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-image-unsigned-6.17.0-1026-nvidia Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-image-unsigned-6.17.0-1026-nvidia-64k Advisory build 6.17.0-1026.26 USN-8508-1
Ubuntu noble linux-image-unsigned-6.17.0-1028-oem Advisory build 6.17.0-1028.28 USN-8491-1
Ubuntu noble linux-image-unsigned-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-image-unsigned-6.17.0-40-generic-64k Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-image-unsigned-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-image-unsigned-7.0.0-28-generic-64k Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-lib-rust-6.17.0-1020-gcp Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-lib-rust-6.17.0-40-generic Advisory build 6.17.0-40.40~24.04.1 USN-8545-1
Ubuntu noble linux-lib-rust-7.0.0-28-generic Advisory build 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu noble linux-modules-6.17.0-1017-realtime Advisory build 6.17.0-1017.19~24.04.1 USN-8490-2
Ubuntu noble linux-modules-6.17.0-1018-oracle Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1018-oracle-64k Advisory build 6.17.0-1018.18~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1019-aws Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1019-aws-64k Advisory build 6.17.0-1019.19~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1020-gcp Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1020-gcp-64k Advisory build 6.17.0-1020.22~24.04.1 USN-8490-1
Ubuntu noble linux-modules-6.17.0-1021-azure Advisory build 6.17.0-1021.21~24.04.1 USN-8604-1
Ubuntu noble linux-modules-6.17.0-1026-nvidia Advisory build 6.17.0-1026.26 USN-8508-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: fix use-after-free in __ksmbd_close_fd() via durable scavenger When a durable file handle survives session disconnect (TCP close without SMB2_LOGOFF), session_fd_check() sets fp->conn = NULL to preserve the handle for later reconnection. However, it did not clean up the byte-range locks on fp->lock_list. Later, when the durable scavenger thread times out and calls __ksmbd_close_fd(NULL, fp), the lock cleanup loop did: spin_lock(&fp->conn->llist_lock); This caused a slab use-after-free because fp->conn was NULL and the original connection object had already been freed by ksmbd_tcp_disconnect(). The root cause is asymmetric cleanup: lock entries (smb_lock->clist) were left dangling on the freed conn->lock_list while fp->conn was nulled out. To fix this issue properly, we need to handle the lifetime of smb_lock->clist across three paths: - Safely skip clist deletion when list is empty and fp->conn is NULL. - Remove the lock from the old connection's lock_list in session_fd_check() - Re-add the lock to the new connection's lock_list in ksmbd_reopen_durable_fd().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

15

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 - ksmbd is an in-kernel SMB server reachable over TCP/IP, and the vulnerable durable-handle and byte-range-lock paths are driven by SMB2 network requests. AC:L - The attacker can create the durable handle, add a lock, disconnect TCP without SMB2_LOGOFF, and wait for the durable scavenger; no race or condition outside attacker control is required. PR:N - The path requires an SMB session and tree connection, but ksmbd supports guest/anonymous sessions and guest shares, making a no-credential network attack a reasonable high-severity deployment scenario. UI:N - No victim interaction is required once the ksmbd service is exposed; the attacker sends SMB2 requests and closes the connection. S:U - The bug corrupts kernel/ksmbd state within the same security authority and does not cross a VM, IOMMU, or sandbox boundary. C:H - This is a kernel use-after-free involving dangling list entries tied to freed connection state, and such memory corruption can plausibly be shaped into kernel memory disclosure. I:H - The same UAF/list corruption can plausibly be leveraged for kernel memory corruption or control-flow impact, so high integrity impact is warranted. A:H - At minimum, triggering the scavenger cleanup can dereference freed or invalid connection/list state and crash the kernel.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 8df4bcdb0a4232192b2445256c39b787d58ef14d to < 0000a7780e0e446a28a273572f6ea8f7f582f694 (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < e33c65f011980b4ad4abfd93585ec2079856368f (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 3d6682726c2d3a46d31dae88b8166786b09b03ad (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < b34fc42cfe922e551f7a27d3ac3bb016e41d7dd9 (affected · git)c8efcc786146a951091588e5fa7e3c754850cb3c to < 235e32320a470fcd3998fb3774f2290a0eb302a1 (affected · git)6.6.32 to < 6.6.140 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.6.140 through 6.6.* (unaffected · semver)6.12.84 through 6.12.* (unaffected · semver)6.18.25 through 6.18.* (unaffected · semver)7.0.2 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: fix use-after-free in __ksmbd_close_fd() via durable scavenger

Provenance

Schema
5.2
Searchable
yes
Content hash
79a02c63b922a04dc9fcbaf855e5adaf8e8cc507d9f4f887dc32c62e23e73cfd
Ingested
23 Sep 2026, 09:09:43 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