# CVE-2025-38247: userns and mnt_idmap leak in open_tree_attr(2)

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-07-09T10:42:28.531Z
- Modified: 2026-06-17T09:16:28.537Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c4a16820d90199409c9bf01c4f794e1e9e8d8fd8 before 142db4e76110dd80239f4e79810f85ea1735ad60; from c4a16820d90199409c9bf01c4f794e1e9e8d8fd8 before 0748e553df0225754c316a92af3a77fdc057b358; 6.15 (not affected: before 6.15; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.15 before 6.15.5; 6.16

## References

- <https://git.kernel.org/stable/c/142db4e76110dd80239f4e79810f85ea1735ad60> (patch)
- <https://git.kernel.org/stable/c/0748e553df0225754c316a92af3a77fdc057b358> (patch)

## Sources

- CVE List: [CVE-2025-38247](https://www.cve.org/CVERecord?id=CVE-2025-38247), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38247](https://nvd.nist.gov/vuln/detail/CVE-2025-38247), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38247 · Whole record: https://cve.day/CVE-2025-38247.json · Rebuilt by cve.day 2026-11-25T22:59:01.009Z
