# CVE-2026-74522: ksmbd: fix use-after-free in \_\_close\_file\_table\_ids()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.63% (percentile 45, 2026-11-26)
- **Published:** 2026-08-15T12:27:39.945Z
- **Modified:** 2026-08-19T17:21:08.877Z

## Who should check

- Anyone running Linux \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 19bfd90d5aaf63217735d81964585c5306158e5f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< cffbdc86393b0235383a20c8c59bc32f16036459; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< e7188199eff46a636f3436356f0aae039be6dd66; df30cbfd3d8a70e61ce59f63ce5ed2261799ac10; aaf1d5ebb358f546414965b39da90107a7ca7ce5; \>= 5.15.38, \< 5.16; \>= 5.17.6, \< 5.18
- Anyone running Linux 5.18

## Description

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

ksmbd: fix use-after-free in \_\_close\_file\_table\_ids()

A ksmbd\_file can remain alive after logical close while another session
holds a temporary reference obtained through ksmbd\_lookup\_fd\_inode().
ksmbd\_close\_fd() currently marks the file closed and drops the idr-owned
reference, but leaves the pointer published in the closing session's idr
until the final reference is dropped.

If the foreign holder performs the final ksmbd\_fd\_put(), \_\_put\_fd\_final()
supplies the foreign session's file table to \_\_ksmbd\_close\_fd(). The object
is then freed without being removed from its owner's idr, and the owner
session later dereferences the stale pointer during file-table teardown.

Remove the volatile id from the owner's idr while ksmbd\_close\_fd() still
holds that table's lock, and clear volatile\_id before dropping
the idr-owned reference. A later foreign final put then only performs
physical destruction and cannot remove the object from the wrong table.

## Affected and fixed versions

- Linux: \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 19bfd90d5aaf63217735d81964585c5306158e5f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< cffbdc86393b0235383a20c8c59bc32f16036459; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< e7188199eff46a636f3436356f0aae039be6dd66; df30cbfd3d8a70e61ce59f63ce5ed2261799ac10; aaf1d5ebb358f546414965b39da90107a7ca7ce5; \>= 5.15.38, \< 5.16; \>= 5.17.6, \< 5.18 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 5.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74522. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74522.md
Affected: Linux >= 8510a043d334ecdf83d4604782f288db6bf21d60, < 19bfd90d5aaf63217735d81964585c5306158e5f; >= 8510a043d334ecdf83d4604782f288db6bf21d60, < 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd; >= 8510a043d334ecdf83d4604782f288db6bf21d60, < 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac; >= 8510a043d334ecdf83d4604…
Fixed in: Linux 19bfd90d5aaf63217735d81964585c5306158e5f, Linux 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd, Linux 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac, Linux 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f, Linux 5.16, Linux 5.18

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74522 being exploited?

There is no confirmed exploitation: CVE-2026-74522 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.63% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74522?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-74522?

Linux \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 19bfd90d5aaf63217735d81964585c5306158e5f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< cffbdc86393b0235383a20c8c59bc32f16036459; \>= 8510a043d334ecdf83d4604782f288db6bf21d60, \< e7188199eff46a636f3436356f0aae039be6dd66; df30cbfd3d8a70e61ce59f63ce5ed2261799ac10; aaf1d5ebb358f546414965b39da90107a7ca7ce5; \>= 5.15.38, \< 5.16; \>= 5.17.6, \< 5.18; Linux 5.18.

### Is there a fix for CVE-2026-74522?

Yes. Fixed in Linux 19bfd90d5aaf63217735d81964585c5306158e5f, Linux 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd, Linux 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac, Linux 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f, Linux 5.16, Linux 5.18. Upgrade Linux to 5.18 or later.

### How do I check if I'm affected by CVE-2026-74522?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/19bfd90d5aaf63217735d81964585c5306158e5f>
- other: <https://git.kernel.org/stable/c/67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd>
- other: <https://git.kernel.org/stable/c/0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac>
- other: <https://git.kernel.org/stable/c/9be4a66f019ea90bd9deca70511f4f9ffebf5c6f>
- other: <https://git.kernel.org/stable/c/cffbdc86393b0235383a20c8c59bc32f16036459>
- other: <https://git.kernel.org/stable/c/e7188199eff46a636f3436356f0aae039be6dd66>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74522>

HTML: <https://flawdb.com/CVE-2026-74522> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74522>
