CVE-2025-38499

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

State
Published
Severity
7.8 High
Published
Aug 11, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before 36fecd740de2d542d2091d65d36554ee2bcf9c65Affected
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before d717325b5ecf2a40daca85c61923e17f32306179Affected
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before dc6a664089f10eab0fb36b6e4f705022210191d2Affected
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before e77078e52fbf018ab986efb3c79065ab35025607Affected
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before 38628ae06e2a37770cd794802a3f1310cf9846e3Affected
  • 427215d85e8d1476da1a86b8d67aceb485eb3631 to before c28f922c9dcee0e4876a2c095939d77fe7e15116Affected
  • c6e8810d25295acb40a7b69ed3962ff181919571Affected
  • e3eee87c846dc47f6d8eb6d85e7271f24122a279Affected
  • 517b875dfbf58f0c6c9e32dc90f5cf42d71a42ceAffected
  • 963d85d630dabe75a3cfde44a006fec3304d07b8Affected
  • 812f39ed5b0b7f34868736de3055c92c7c4cf459Affected
  • 6a002d48a66076524f67098132538bef17e8445eAffected
  • 41812f4b84484530057513478c6770590347dc30Affected
  • 4.4.281 to before 4.5Affected
  • 4.9.280 to before 4.10Affected
  • 4.14.244 to before 4.15Affected
  • 4.19.204 to before 4.20Affected
  • 5.4.141 to before 5.5Affected
  • 5.10.59 to before 5.11Affected
  • 5.13.11 to before 5.14Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.147 through 6.1.*Not affected
  • 6.6.100 through 6.6.*Not affected
  • 6.12.40 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.