CVE-2025-38499

clone_private_mnt(): make sure that caller has CAP_SYS_ADMIN in the right userns

7.8 high EPSS 0.20%

Published 11 Aug 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38499

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38499 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before 36fecd740de2d542d2091d65d36554ee2bcf9c65
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before d717325b5ecf2a40daca85c61923e17f32306179
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before dc6a664089f10eab0fb36b6e4f705022210191d2
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before e77078e52fbf018ab986efb3c79065ab35025607
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before 38628ae06e2a37770cd794802a3f1310cf9846e3
affected from 427215d85e8d1476da1a86b8d67aceb485eb3631, before c28f922c9dcee0e4876a2c095939d77fe7e15116
affected c6e8810d25295acb40a7b69ed3962ff181919571
affected e3eee87c846dc47f6d8eb6d85e7271f24122a279
affected 517b875dfbf58f0c6c9e32dc90f5cf42d71a42ce
affected 963d85d630dabe75a3cfde44a006fec3304d07b8
affected 812f39ed5b0b7f34868736de3055c92c7c4cf459
affected 6a002d48a66076524f67098132538bef17e8445e
affected 41812f4b84484530057513478c6770590347dc30
affected from 4.4.281, before 4.5
affected from 4.9.280, before 4.10
affected from 4.14.244, before 4.15
affected from 4.19.204, before 4.20
affected from 5.4.141, before 5.5
affected from 5.10.59, before 5.11
affected from 5.13.11, before 5.14
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.147 up to and including 6.1.*
unaffected from 6.6.100 up to and including 6.6.*
unaffected from 6.12.40 up to and including 6.12.*
unaffected from 6.15.3 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38499 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38499

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38499
trivy image --scanners vuln IMAGE | grep CVE-2025-38499

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38499 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.