ksmbd: fix racy issue from session lookup and expire

Summary

CVECVE-2024-58087
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-03-12 08:15:11 UTC
Updated2026-04-23 13:48:41 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 8.1 HIGH from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-667 | CWE-667 CWE-667 Improper Locking


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1ADPDECLARED8.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary8.1HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 2107ab40629aeabbec369cf34b8cf0f288c3eb1b git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 37a0e2b362b3150317fb6e2139de67b1e29ae5ff git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 450a844c045ff0895d41b05a1cbe8febd1acfcfd git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf a39e31e22a535d47b14656a7d6a893c7f6cf758c git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf b95629435b84b9ecc0c765995204a4d8a913ed52 git Not specified
CNA Linux Linux affected 5.15 Not specified
CNA Linux Linux unaffected 5.15 semver Not specified
CNA Linux Linux unaffected 5.15.176 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.121 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.67 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.6 6.12.* semver Not specified
CNA Linux Linux unaffected 6.13 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/2107ab40629aeabbec369cf34b8cf0f288c3eb1b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
www.zerodayinitiative.com/advisories/ZDI-25-100 416baaa9-dc9f-4396-8d5f-8c081fb06d67 www.zerodayinitiative.com Patch, Third Party Advisory
git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report