CriticalFix available
ksmbd: fix racy issue from session lookup and expire
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.176, 6.1.121, 6.12.6, 6.6.67
- CVEs
- CVE-2024-58087
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:51 UTC · Revision 1
Source evidence
ksmbd: fix racy issue from session lookup and expire
core-osv · Original sourcePublished 12 Mar 2025, 07:28 UTC
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.
osv:CVE-2024-58087
Kernel
Fixed versions: 5.15.176, 6.1.121, 6.6.67, 6.12.6
Complete source record
{
"id": "cdd17a76d9effcf3813600f21b9f61e1c3d63e4811ce66c59b3e74c2ff1ab4d5",
"url": "https://osv.dev/vulnerability/CVE-2024-58087",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ksmbd: fix racy issue from session lookup and expire",
"summary": "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.",
"evidence": "osv:CVE-2024-58087",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.176",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.67",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2024-58087",
"aliases": [
"CVE-2024-58087"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0626e6641f6b467447c81dd7678a69c66f7746cf"
},
{
"fixed": "2107ab40629aeabbec369cf34b8cf0f288c3eb1b"
},
{
"fixed": "37a0e2b362b3150317fb6e2139de67b1e29ae5ff"
},
{
"fixed": "450a844c045ff0895d41b05a1cbe8febd1acfcfd"
},
{
"fixed": "a39e31e22a535d47b14656a7d6a893c7f6cf758c"
},
{
"fixed": "b95629435b84b9ecc0c765995204a4d8a913ed52"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58087.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "5.15.176"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.121"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.67"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58087.json"
}
}
],
"modified": "2026-10-28T02:30:33.049540249Z",
"provider": "osv",
"references": [
"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",
"https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58087.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-58087",
"https://www.zerodayinitiative.com/advisories/ZDI-25-100/",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58087.json"
}
},
"related_cves": [
{
"value": "CVE-2024-58087",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499813,
"published_at": "2025-03-12T07:28:09.114+00:00"
}