Local kernel-memory corruption via detached-mount id-map race
Published Sep 5, 2025 · Updated Sep 5, 2025
Use-after-free in Linux 6.15 through 6.16.3 allows local users to read and corrupt kernel memory through mount id-mapping operations. fs/namespace.c lets open_tree_attr() replace the id-mapping of a detached visible mount when OPEN_TREE_CLONE is absent, freeing a struct mnt_idmap while concurrent operations can retain stale references. An unprivileged user namespace supplies the required mount capabilities; racing those references can expose kernel memory, alter permission decisions, or panic the host.
Summary
What happened
Use-after-free in Linux 6.15 through 6.16.3 allows local users to read and corrupt kernel memory through mount id-mapping operations. fs/namespace.c lets open_tree_attr() replace the id-mapping of a detached visible mount when OPEN_TREE_CLONE is absent, freeing a struct mnt_idmap while concurrent operations can retain stale references. An unprivileged user namespace supplies the required mount capabilities; racing those references can expose kernel memory, alter permission decisions, or panic the host.
The record
- CVE
- CVE-2025-39717
- Published
- Sep 5, 2025
- Updated
- Sep 5, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 5, 2025CVE publishedPublication date reported by the CVE source.
- Sep 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2462651ffa76b87f9c2e4403ef6e6b89b703fb2f <69dbdc711d9130136824e3830191a6afffa0a1f0
- Affected versionversion=2462651ffa76b87f9c2e4403ef6e6b89b703fb2f <9308366f062129d52e0ee3f7a019f7dd41db33df
- Affected versionversion=6.15
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo