CVE-2025-38499

Source
https://cve.org/CVERecord?id=CVE-2025-38499
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38499.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38499
Downstream
Related
Published
2025-08-11T16:01:08.257Z
Modified
2026-03-11T07:48:10.824240386Z
Summary
clone_private_mnt(): make sure that caller has CAP_SYS_ADMIN in the right userns
Details

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

cloneprivatemnt(): make sure that caller has CAPSYSADMIN 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.

cloneprivatemnt() checks the former, but not the latter.

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38499.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
427215d85e8d1476da1a86b8d67aceb485eb3631
Fixed
36fecd740de2d542d2091d65d36554ee2bcf9c65
Fixed
d717325b5ecf2a40daca85c61923e17f32306179
Fixed
dc6a664089f10eab0fb36b6e4f705022210191d2
Fixed
e77078e52fbf018ab986efb3c79065ab35025607
Fixed
38628ae06e2a37770cd794802a3f1310cf9846e3
Fixed
c28f922c9dcee0e4876a2c095939d77fe7e15116
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
c6e8810d25295acb40a7b69ed3962ff181919571
Last affected
e3eee87c846dc47f6d8eb6d85e7271f24122a279
Last affected
517b875dfbf58f0c6c9e32dc90f5cf42d71a42ce
Last affected
963d85d630dabe75a3cfde44a006fec3304d07b8
Last affected
812f39ed5b0b7f34868736de3055c92c7c4cf459
Last affected
6a002d48a66076524f67098132538bef17e8445e
Last affected
41812f4b84484530057513478c6770590347dc30

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38499.json"