CVE-2025-38247Published Jul 9, 2025 · Jul 9Updated Oct 28
userns and mnt_idmap leak in open_tree_attr(2)
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
userns and mnt_idmap leak in open_tree_attr(2)
Once want_mount_setattr() has returned a positive, it does require finish_mount_kattr() to release ->mnt_userns. Failing do_mount_setattr() does not change that.
As the result, we can end up leaking userns and possibly mnt_idmap as well.
From the CVE record · Linux
The Linux kernel can leak a user namespace and possibly a mount ID mapping when open_tree_attr(2) fails to release resources after want_mount_setattr() succeeds. The input does not specify attacker access requirements or whether user interaction is needed.
Teams running the Linux kernel should check their installations; affected versions are not specified.