# CVE-2025-38499: clone\_private\_mnt(): make sure that caller has CAP\_SYS\_ADMIN in the right userns

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-08-11T16:01:08.257Z
- **Modified:** 2026-10-15T22:18:43.140Z

## Who should check

- Anyone running Linux \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 36fecd740de2d542d2091d65d36554ee2bcf9c65; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< d717325b5ecf2a40daca85c61923e17f32306179; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< dc6a664089f10eab0fb36b6e4f705022210191d2; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< e77078e52fbf018ab986efb3c79065ab35025607; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 38628ae06e2a37770cd794802a3f1310cf9846e3; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< c28f922c9dcee0e4876a2c095939d77fe7e15116; c6e8810d25295acb40a7b69ed3962ff181919571; e3eee87c846dc47f6d8eb6d85e7271f24122a279; 517b875dfbf58f0c6c9e32dc90f5cf42d71a42ce; 963d85d630dabe75a3cfde44a006fec3304d07b8; …
- Anyone running Linux 5.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

clone\_private\_mnt(): make sure that caller has CAP\_SYS\_ADMIN in the right userns

What we want is to verify there is that clone won't expose something
hidden by a mount we wouldn't be able to undo.  "Wouldn't be able to undo"
may be a result of MNT\_LOCKED on a child, but it may also come from
lacking admin rights in the userns of the namespace mount belongs to.

clone\_private\_mnt() checks the former, but not the latter.

There's a number of rather confusing CAP\_SYS\_ADMIN checks in various
userns during the mount, especially with the new mount API; they serve
different purposes and in case of clone\_private\_mnt() they usually,
but not always end up covering the missing check mentioned above.

## Affected and fixed versions

- Linux: \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 36fecd740de2d542d2091d65d36554ee2bcf9c65; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< d717325b5ecf2a40daca85c61923e17f32306179; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< dc6a664089f10eab0fb36b6e4f705022210191d2; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< e77078e52fbf018ab986efb3c79065ab35025607; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 38628ae06e2a37770cd794802a3f1310cf9846e3; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< c28f922c9dcee0e4876a2c095939d77fe7e15116; c6e8810d25295acb40a7b69ed3962ff181919571; e3eee87c846dc47f6d8eb6d85e7271f24122a279; 517b875dfbf58f0c6c9e32dc90f5cf42d71a42ce; 963d85d630dabe75a3cfde44a006fec3304d07b8; … (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38499. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38499.md
Affected: Linux >= 427215d85e8d1476da1a86b8d67aceb485eb3631, < 36fecd740de2d542d2091d65d36554ee2bcf9c65; >= 427215d85e8d1476da1a86b8d67aceb485eb3631, < d717325b5ecf2a40daca85c61923e17f32306179; >= 427215d85e8d1476da1a86b8d67aceb485eb3631, < dc6a664089f10eab0fb36b6e4f705022210191d2; >= 427215d85e8d1476da1a86b…
Fixed in: Linux 36fecd740de2d542d2091d65d36554ee2bcf9c65, Linux 38628ae06e2a37770cd794802a3f1310cf9846e3

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.
```

## FAQ

### Is CVE-2025-38499 being exploited?

There is no confirmed exploitation: CVE-2025-38499 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38499?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38499?

Linux \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 36fecd740de2d542d2091d65d36554ee2bcf9c65; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< d717325b5ecf2a40daca85c61923e17f32306179; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< dc6a664089f10eab0fb36b6e4f705022210191d2; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< e77078e52fbf018ab986efb3c79065ab35025607; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< 38628ae06e2a37770cd794802a3f1310cf9846e3; \>= 427215d85e8d1476da1a86b8d67aceb485eb3631, \< c28f922c9dcee0e4876a2c095939d77fe7e15116; c6e8810d25295acb40a7b69ed3962ff181919571; e3eee87c846dc47f6d8eb6d85e7271f24122a279; 517b875dfbf58f0c6c9e32dc90f5cf42d71a42ce; 963d85d630dabe75a3cfde44a006fec3304d07b8; …; Linux 5.14.

### Is there a fix for CVE-2025-38499?

Yes. Fixed in Linux 36fecd740de2d542d2091d65d36554ee2bcf9c65, Linux 38628ae06e2a37770cd794802a3f1310cf9846e3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38499?

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.

## References

- patch: <https://git.kernel.org/stable/c/36fecd740de2d542d2091d65d36554ee2bcf9c65>
- patch: <https://git.kernel.org/stable/c/d717325b5ecf2a40daca85c61923e17f32306179>
- patch: <https://git.kernel.org/stable/c/dc6a664089f10eab0fb36b6e4f705022210191d2>
- patch: <https://git.kernel.org/stable/c/e77078e52fbf018ab986efb3c79065ab35025607>
- patch: <https://git.kernel.org/stable/c/38628ae06e2a37770cd794802a3f1310cf9846e3>
- patch: <https://git.kernel.org/stable/c/c28f922c9dcee0e4876a2c095939d77fe7e15116>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38499>

HTML: <https://flawdb.com/CVE-2025-38499> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38499>
