CVE-2024-58087
Linux Kernel 5.15.145 – 5.15.176
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSummary
CVE-2024-58087 is a critical-severity Improper Locking (CWE-667) vulnerability in Linux Linux Kernel. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2024-58087 is a race condition vulnerability in the ksmbd (Kernel SMB Daemon) component of the Linux kernel. The flaw stems from a racy issue between session lookup and session expiration, where the session reference count is not incremented within the lock during lookup, potentially leading to improper handling of SMB sessions. It carries a CVSS v3.1 base score of 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and maps to CWE-667 (Improper Locking). The vulnerability was published on 2025-03-12.
A remote network-based attacker requires no privileges or user interaction but must overcome high attack complexity to exploit it. Successful exploitation could result in high confidentiality, integrity, and availability impacts, potentially allowing unauthorized access to or disruption of SMB sessions managed by ksmbd.
Mitigation involves applying kernel patches that increment the session reference count within the lock during lookup to prevent the race. Relevant stable kernel commits include: https://git.kernel.org/stable/c/2107ab40629aeabbec369cf34b8cf0f288c3eb1b, https://git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff, https://git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd, https://git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c, and https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-6402
Vulnerability Data
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix racy issue from session lookup and expire Increment the session reference count within the lock for lookup to avoid racy issue with session expire.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
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.
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.
Security testing can detect race conditions and locking errors before release.
Secure development lifecycle includes concurrency and locking requirements that reduce improper locking defects.
Application security requirements can mandate proper lock acquisition/release patterns.
Secure architecture principles address thread-safety and resource synchronization.
Secure coding standards directly prohibit missing or incorrect lock usage.
Change management may catch locking issues introduced by modifications but does not prevent the weakness itself.