CVE-2025-38058CWE-667

CVE-2025-38058

High · published June 18, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
5.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00169 · 5.9th percentile
Weakness
CWE-667 · Improper Locking
Published
2025-06-18T14:15Z
Affected products (13)
ProductVersionsFixed in
linux/linux_kernel≥ 5.5, < 5.10.2385.10.238
linux/linux_kernel≥ 5.11, < 5.15.1855.15.185
linux/linux_kernel≥ 5.16, < 6.1.1416.1.141
linux/linux_kernel≥ 6.2, < 6.6.936.6.93
linux/linux_kernel≥ 6.7, < 6.12.316.12.31
linux/linux_kernel≥ 6.13, < 6.14.96.14.9
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernel< 5.4.2945.4.294
debian/debian_linuxall versions—
References (11)
EPSS history
Timeline
  • 18 JUN 09:33Z
    __legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock
    cvelistv5