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

CVE-2025-38499
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 427215d85e8d1476da1a86b8d67aceb485eb3631 < 36fecd740de2d542d2091d65d36554ee2bcf9c65 ; affected 427215d85e8d1476da1a86b8d67aceb485eb3631 < d717325b5ecf2a40daca85c61923e17f32306179 ; affected 427215d85e8d1476da1a86b8d67aceb485eb3631 < dc6a664089f10eab0fb36b6e4f705022210191d2 ; affected 427215d85e8d1476da1a86b8d67aceb485eb3631 < e77078e52fbf018ab986efb3c79065ab35025607 ; affected 427215d85e8d1476da1a86b8d67aceb485eb3631 < 38628ae06e2a37770cd794802a3f1310cf9846e3 ; affected 427215d85e8d1476da1a86b8d67aceb485eb3631 < c28f922c9dcee0e4876a2c095939d77fe7e15116
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.190 ≤ 5.15.* ; unaffected 6.1.147 ≤ 6.1.* ; unaffected 6.6.100 ≤ 6.6.* ; unaffected 6.12.40 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD