CVE-2026-31717

ksmbd: validate owner of durable handle on reconnect

Published May 1, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: validate owner of durable handle on reconnect

Currently, ksmbd does not verify if the user attempting to reconnect
to a durable handle is the same user who originally opened the file.
This allows any authenticated user to hijack an orphaned durable handle
by predicting or brute-forcing the persistent ID.

According to MS-SMB2, the server MUST verify that the SecurityContext
of the reconnect request matches the SecurityContext associated with
the existing open.
Add a durable_owner structure to ksmbd_file to store the original opener's
UID, GID, and account name. and catpure the owner information when a file
handle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner()
to validate the identity of the requester during SMB2_CREATE (DHnC).

Analysis

AI-generated

Technical impact

The ksmbd daemon in the Linux kernel does not check that a user reconnecting to a durable handle is the original opener. Because of this, an authenticated user who can predict or brute‑force the persistent identifier could hijack an orphaned handle, gaining access to files opened by another user. This flaw is classified as CWE‑708, indicating a user impersonation weakness.

Affected Systems

Any Linux installation running an unpatched mainline kernel that ships with the ksmbd module is affected. Versions prior to the commit that added the durable_owner structure and the ksmbd_vfs_compare_durable_owner validation are vulnerable. All distributions that include those kernel releases without the patch are potentially impacted.

Risk and Exploitability

The CVSS score of 8.8 signifies a high severity. With an EPSS score of less than 1% and no listing in CISA’s KEV catalog, there is no evidence of public exploitation. Attackers would need authenticated SMB access and the ability to use durable handles; it is inferred that brute‑forcing the persistent ID is a likely method to hijack a handle, but this inference comes from the description of the vulnerability and is not directly described in the advisory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the latest Linux kernel version that contains the ksmbd patch and the durable_owner validation
  • If a kernel update cannot be performed immediately, configure ksmbd to disable durable handles or set the appropriate kernel parameter to reject orphaned durable handles
  • As a temporary measure, stop the ksmbd service to eliminate the attack surface while awaiting a kernel update

Generated by OpenCVE AI on May 6, 2026 at 23:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6355-1 linux security update
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate owner of durable handle on reconnect Currently, ksmbd does not verify if the user attempting to reconnect to a durable handle is the same user who originally opened the file. This allows any authenticated user to hijack an orphaned durable handle by predicting or brute-forcing the persistent ID. According to MS-SMB2, the server MUST verify that the SecurityContext of the reconnect request matches the SecurityContext associated with the existing open. Add a durable_owner structure to ksmbd_file to store the original opener's UID, GID, and account name. and catpure the owner information when a file handle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner() to validate the identity of the requester during SMB2_CREATE (DHnC).
Title ksmbd: validate owner of durable handle on reconnect
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:24 PM
Reserved
Mar 9, 2026, 3:48 PM
Status
Modified
Published
May 1, 2026, 2:16 PM
Modified
Nov 11, 2026, 9:10 PM
Severity
Public date
May 1, 2026, 12:00 AM