CVE-2025-38247
JSON

5.5medium

userns and mnt_idmap leak in open_tree_attr(2)

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.15 before 6.15.5, 6.16NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fuga de userns y mnt_idmap en open_tree_attr(2). Una vez que want_mount_setattr() ha devuelto un resultado positivo, requiere finish_mount_kattr() para liberar ->mnt_userns. Un fallo en do_mount_setattr() no cambia esto. Como resultado, podemos acabar con fugas de userns y posiblemente también de mnt_idmap.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38247 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-38247 changed 2026-06-17Public domain