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).
Published: 2026-05-01
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Wed, 06 May 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*

Sun, 03 May 2026 06:30:00 +0000

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'}


Sat, 02 May 2026 00:15:00 +0000


Fri, 01 May 2026 14:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-23T16:05:49.035Z

Reserved: 2026-03-09T15:48:24.134Z

Link: CVE-2026-31717

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-01T14:16:21.860

Modified: 2026-05-06T21:08:51.140

Link: CVE-2026-31717

cve-icon Redhat

Severity :

Publid Date: 2026-05-01T00:00:00Z

Links: CVE-2026-31717 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-06T23:15:17Z

Weaknesses