CVE Catalog

CVE-2025-38058

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

In the Linux kernel, a race condition was found in the __legitimize_mnt() function related to the MNT_SYNC_UMOUNT flag. The check for this flag is performed outside the mount_lock, which could allow stealing the final mntput from a sync unmount, leading to incorrect reference management.

Risk Assessment

The organization may experience incorrect unmounting of filesystems, potentially leading to data loss or system instability.

Recommendation

Update the Linux kernel to a version containing this fix to ensure proper mount and unmount management.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: __legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock ... or we risk stealing final mntput from sync umount - raising mnt_count after umount(2) has verified that victim is not busy, but before it has set MNT_SYNC_UMOUNT; in that case __legitimize_mnt() doesn't see that it's safe to quietly undo mnt_count increment and leaves dropping the reference to caller, where it'll be a full-blown mntput(). Check under mount_lock is needed; leaving the current one done before taking that makes no sense - it's nowhere near common enough to bother with.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS