Vulnerabilities

CVE-2025-38058

Medium 5.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-06-18
Last modified
2026-10-15
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.1 % higher than 4 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Debian Debian Linux 11.0 Affected
Linux Linux Kernel < 5.4.294 Affected
Linux Linux Kernel 6.15 Affected
Linux Linux Kernel ≥ 5.11, < 5.15.185 Affected
Linux Linux Kernel ≥ 5.16, < 6.1.141 Affected
Linux Linux Kernel ≥ 5.5, < 5.10.238 Affected
Linux Linux Kernel ≥ 6.13, < 6.14.9 Affected
Linux Linux Kernel ≥ 6.2, < 6.6.93 Affected
Linux Linux Kernel ≥ 6.7, < 6.12.31 Affected

Weakness type

  • CWE-667: Improper Locking

    The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1499.004: Application or System Exploitation impact

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities