ksmbd: fix use-after-free in session logoff
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.159, 6.12.28, 6.14.6, 6.6.119
- CVEs
- CVE-2025-37899
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:29 UTC · Revision 1
Source evidence
ksmbd: fix use-after-free in session logoff
core-osv · Original sourcePublished 20 May 2025, 15:21 UTC
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user.
osv:CVE-2025-37899
Kernel
Fixed versions: 6.1.159, 6.6.119, 6.12.28, 6.14.6
Complete source record
{
"id": "bcdccceba6b88117842df4280e17b0f3f41b5e3e28f0b71a97e38e5111245c34",
"url": "https://osv.dev/vulnerability/CVE-2025-37899",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ksmbd: fix use-after-free in session logoff",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user.",
"evidence": "osv:CVE-2025-37899",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.159",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.119",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.28",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-37899",
"aliases": [
"CVE-2025-37899"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/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": "931dc8a3670f71c45c0b1379ea4e92dafbda1aca"
},
{
"fixed": "70ad6455139e26e85f48f95d0e21f351c1909342"
},
{
"fixed": "d5ec1d79509b3ee01de02c236f096bc050221b7f"
},
{
"fixed": "02d16046cd11a5c037b28c12ffb818c56dd3ef43"
},
{
"fixed": "2fc9feff45d92a92cd5f96487655d5be23fb7e2b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37899.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "6.1.159"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.119"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.28"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.14.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37899.json"
}
}
],
"modified": "2026-10-28T02:30:23.403223891Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43",
"https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b",
"https://git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342",
"https://git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca",
"https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f",
"https://news.ycombinator.com/item?id=44081338",
"https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-vulnerability-in-the-linux-kernels-smb-implementation/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37899.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-37899",
"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/2025/37xxx/CVE-2025-37899.json"
}
},
"related_cves": [
{
"value": "CVE-2025-37899",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489854,
"published_at": "2025-05-20T15:21:34.782+00:00"
}