Cyber Resilience

CVE-2025-38058

Linux Kernel ≤ 5.4.294

Published
18 June 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 5.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0013 3th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2025-38058 is a medium-severity Improper Locking (CWE-667) vulnerability in Linux Linux Kernel. Its CVSS base score is 5.5 (Medium).

Operationally, ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SC-39 (Process Isolation) and SC-3 (Security Function Isolation) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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,…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2024-26925Same product: Debian Debian Linux
CVE-2025-38650Same product: Debian Debian Linux
CVE-2025-39773Same product: Debian Debian Linux
CVE-2025-37741Same product: Debian Debian Linux
CVE-2024-36919Same product: Debian Debian Linux
CVE-2024-26999Same product: Debian Debian Linux
CVE-2025-38491Same product: Debian Debian Linux
CVE-2025-37969Same product: Debian Debian Linux
CVE-2025-23163Same product: Debian Debian Linux
CVE-2025-37967Same product: Debian Debian Linux

Affected Assets

linux
linux kernel
6.15 · ≤ 5.4.294 · 5.5 — 5.10.238 · 5.11 — 5.15.185
debian
debian linux
11.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SC-39 Process Isolation
  • SC-3 Security Function Isolation
  • SI-16 Memory Protection
Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly enforces process isolation for kernel objects such as mount namespaces, preventing the exact race on mnt_count and MNT_SYNC_UMOUNT that the missing mount_lock check allows.

prevent

Requires isolation of security-critical kernel functions (VFS mount handling) so that reference-count operations cannot be observed or altered by concurrent unmount paths.

prevent

Protects in-kernel data structures (mount reference counts) from unauthorized concurrent modification, mitigating the window exploited by CVE-2025-38058.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly include code reviews, static analysis, and concurrency standards that prevent improper locking.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing can detect race conditions and locking errors before release.

prevents

Secure development lifecycle includes concurrency and locking requirements that reduce improper locking defects.

prevents

Application security requirements can mandate proper lock acquisition/release patterns.

prevents

Secure architecture principles address thread-safety and resource synchronization.

prevents

Secure coding standards directly prohibit missing or incorrect lock usage.

prevents

Change management may catch locking issues introduced by modifications but does not prevent the weakness itself.

References