Skip to content
7.8 High

CVE-2025-38058 In the Linux kernel, the following vulnerability has been resolved: __legitimize_mnt(): check for MNT_SYNC_UMOUNT should…

Description

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.

Affected products and versions

Product Affected versions Fixed in
Linux 6.15 earliest → < 6.15 6.15
Linux 6.14 earliest → < 6.14.9 6.14.9
Linux 6.12 earliest → < 6.12.31 6.12.31
Linux 6.6 earliest → < 6.6.93 6.6.93
Linux 6.1 earliest → < 6.1.141 6.1.141
Linux 5.15 earliest → < 5.15.185 5.15.185
Linux 5.10 earliest → < 5.10.238 5.10.238
Linux 5.4 earliest → < 5.4.294 5.4.294
Linux 3.13 No fix stated
Show the 3 other branches
Product Affected versions Fixed in
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP 3.1 3.1.5 → latest No fix stated
The 18286 CVEs of Linux →
Track this CVE