Linux: Improper Locking
CVE-2024-58087 is a high-severity improper locking vulnerability in Linux, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 2107ab40629aeabbec369cf34b8cf0f288c3eb1b, 37a0e2b362b3150317fb6e2139de67b1e29ae5ff, 450a844c045ff0895d41b05a1cbe8febd1acfcfd as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.51% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 2107ab40629aeabbec369cf34b8cf0f288c3eb1b or 37a0e2b362b3150317fb6e2139de67b1e29ae5ff or 450a844c045ff0895d41b05a1cbe8febd1acfcfd or a39e31e22a535d47b14656a7d6a893c7f6cf758c, whichever matches your release line, or a later version.
- Update Linux Kernel to 5.15.176 or 6.1.121 or 6.3 or 6.4, whichever matches your release line, or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf up to, but not including, 2107ab40629aeabbec369cf34b8cf0f288c3eb1b; 0626e6641f6b467447c81dd7678a69c66f7746cf up to, but not including, 37a0e2b362b3150317fb6e2139de67b1e29ae5ff; 0626e6641f6b467447c81dd7678a69c66f7746cf up to, but not including, 450a844c045ff0895d41b05a1cbe8febd1acfcfd; 0626e6641f6b467447c81dd7678a69c66f7746cf up to, but not including, a39e31e22a535d47b14656a7d6a893c7f6cf758c; 0626e6641f6b467447c81dd7678a69c66f7746cf up to, but not including, b95629435b84b9ecc0c765995204a4d8a913ed52; 5.15 | 2107ab40629aeabbec369cf34b8cf0f288c3eb1b, 37a0e2b362b3150317fb6e2139de67b1e29ae5ff, 450a844c045ff0895d41b05a1cbe8febd1acfcfd, a39e31e22a535d47b14656a7d6a893c7f6cf758c, b95629435b84b9ecc0c765995204a4d8a913ed52 |
| Linux | Linux Kernel | 5.15.145 up to, but not including, 5.15.176; 6.1.29 up to, but not including, 6.1.121; 6.2.16 up to, but not including, 6.3; 6.3.2 up to, but not including, 6.4; 6.7 up to, but not including, 6.12.6; 6.13 | 5.15.176, 6.1.121, 6.3, 6.4, 6.12.6 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- HighSuccess depends on conditions outside the attacker's control.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | CNA |
| CVSS 3.1 | 8.1 | High | NVD |
| CVSS 3.1 | 8.1 | High | CISA (ADP) |
Official description
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Locking
The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.
How developers prevent this class of flaw
- Use industry standard APIs to implement locking mechanism.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/2107ab40629aeabbec369cf34b8cf0f288c3eb1b
- git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff
- git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd
- git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c
- git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52
- zerodayinitiative.com/advisories/ZDI-25-100/Third Party Advisory
Recent Improper Locking vulnerabilities
- 7.5 High severity
- 7.8 High severity
- 7.8 High severity
- 7.1 High severity
- 7.5 High severity
- 7.8 High severity
Spotted an error? Tell us.