CVE-2026-74522
ksmbd: fix use-after-free in __close_file_table_ids()
Mitigation
- Upgrade Linux to 5.18 or later.
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
Vulnerability facts
- Affected
- 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
- Fixed in
- Linux 19bfd90d5aaf63217735d81964585c5306158e5f, Linux 67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd, Linux 0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac, Linux 9be4a66f019ea90bd9deca70511f4f9ffebf5c6f, Linux 5.16, Linux 5.18
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.63% chance of exploitation in 30 days (percentile 45, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/19bfd90d5aaf63217735d81964585c5306158e5f
- https://git.kernel.org/stable/c/67aaec2a1fdce3e1dde46c45b5d1ef8cf22f65cd
- https://git.kernel.org/stable/c/0c3918c2cee62ec6c9de8d5c73ebfe6f833961ac
- https://git.kernel.org/stable/c/9be4a66f019ea90bd9deca70511f4f9ffebf5c6f
- https://git.kernel.org/stable/c/cffbdc86393b0235383a20c8c59bc32f16036459
- https://git.kernel.org/stable/c/e7188199eff46a636f3436356f0aae039be6dd66
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.