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

smb: client: clean up failed cached directory opens

open_cached_dir() sends CREATE and QUERY_INFO as a compound request. If
the CREATE succeeds but a later command returns an error, the function
must retain the CREATE FID so common cleanup can issue SMB2_close(). It
also must not treat a response error as a valid CREATE.

Validate the CREATE response before using its fields, record the FIDs, and
mark the handle open before handling errors from later compound commands.
Move the -EREMCHG reconnect handling before response validation so a
missing response does not hide the reconnect request. Count the handle
when it is marked open; confirmed close responses decrement the counter,
while existing close retry behavior remains best effort on transport
failures.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

Impact

In the Linux kernel SMB client, a flaw was found in the handling of compound SMB2 requests where a CREATE operation succeeded but a following command failed. The code returned to the caller with an unvalidated CREATE response, potentially leaving the file identifier (FID) in an undefined state and causing the system to add a handle to its open‑handle counter when it should not have. This misuse could let an attacker cause a kernel memory corruption or resource exhaustion, leading to a denial of service by exhausting handles or destabilizing SMB operations. The vulnerability is a classic example of improper initialization and lack of robust error handling (CWE-665) and improper type conversion (CWE-704).

Affected Systems

The issue affects all Linux kernel builds that include the SMB client interface. The affected vendor is Linux and the products are the Linux kernel. No specific kernel version ranges are listed, so any kernel version prior to the inclusion of the patch commits is vulnerable. The CPE string indicates a general Linux kernel.* product classification.

Risk and Exploitability

The CVSS score is not available, and EPSS is not provided, so the theoretical exploitation probability cannot be quantified. The vulnerability is not currently listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation. Based on the description, the likely attack vector is through a malicious or malformed SMB2 request sent to the kernel SMB client, which could trigger the failure of the CREATE operation to be mishandled. Because the error is not directly exploitable by arbitrary users without SMB network access and because no public exploit is documented, the risk is considered moderate to high for environments that use SMB clients heavily and do not apply the patch.

Generated by OpenCVE AI on October 18, 2026 at 23:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a patched release that contains the fix for SMB client cached directory cleanup.
  • Reboot the system so that the updated kernel becomes active.
  • If a kernel update is not immediately viable, disable or restrict SMB client functionality to mitigate the risk until a proper patch can be applied.

Generated by OpenCVE AI on October 18, 2026 at 23:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665
CWE-704
CWE-772

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: clean up failed cached directory opens open_cached_dir() sends CREATE and QUERY_INFO as a compound request. If the CREATE succeeds but a later command returns an error, the function must retain the CREATE FID so common cleanup can issue SMB2_close(). It also must not treat a response error as a valid CREATE. Validate the CREATE response before using its fields, record the FIDs, and mark the handle open before handling errors from later compound commands. Move the -EREMCHG reconnect handling before response validation so a missing response does not hide the reconnect request. Count the handle when it is marked open; confirmed close responses decrement the counter, while existing close retry behavior remains best effort on transport failures.
Title smb: client: clean up failed cached directory opens
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-10-18T15:15:02.436Z

Reserved: 2026-09-25T10:25:14.350Z

Link: CVE-2026-98452

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:16:55.537

Modified: 2026-10-18T16:16:55.537

Link: CVE-2026-98452

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T00:15:14Z

Weaknesses
  • CWE-665

    Improper Initialization

  • CWE-704

    Incorrect Type Conversion or Cast

  • CWE-772

    Missing Release of Resource after Effective Lifetime