ksmbd: close accepted socket when per-IP limit rejects connection
In the Linux kernel, the following vulnerability has been resolved: ksmbd: close accepted socket when per-IP limit rejects connection When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS. Release client_sk before continuing. This bug was found with ZeroPath.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.159, 6.12.59, 6.17.9, 6.6.117
- CVEs
- CVE-2025-68246
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:53 UTC · Revision 1
Source evidence
ksmbd: close accepted socket when per-IP limit rejects connection
core-osv · Original sourcePublished 16 Dec 2025, 14:21 UTC
In the Linux kernel, the following vulnerability has been resolved: ksmbd: close accepted socket when per-IP limit rejects connection When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS. Release client_sk before continuing. This bug was found with ZeroPath.
osv:CVE-2025-68246
Kernel
Fixed versions: 6.1.159, 6.6.117, 6.12.59, 6.17.9
Complete source record
{
"id": "d456983f287e0f1958ecd450f4b63b40ce67d075bf315976552c61238bb7f878",
"url": "https://osv.dev/vulnerability/CVE-2025-68246",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ksmbd: close accepted socket when per-IP limit rejects connection",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ksmbd: close accepted socket when per-IP limit rejects connection When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS. Release client_sk before continuing. This bug was found with ZeroPath.",
"evidence": "osv:CVE-2025-68246",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.159",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.117",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.59",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-68246",
"aliases": [
"CVE-2025-68246"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0626e6641f6b467447c81dd7678a69c66f7746cf"
},
{
"fixed": "7a3c7154d5fc05956a8ad9e72ecf49e21555bfca"
},
{
"fixed": "5746b2a0f5eb3d79667b3c51fe849bd62464220e"
},
{
"fixed": "4587a7826be1ae0190dba10ff70b46bb0e3bc7d3"
},
{
"fixed": "35521b5a7e8a184548125f4530552101236dcda1"
},
{
"fixed": "98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68246.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "6.1.159"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.117"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.59"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68246.json"
}
}
],
"modified": "2026-10-28T02:30:48.793983162Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/35521b5a7e8a184548125f4530552101236dcda1",
"https://git.kernel.org/stable/c/4587a7826be1ae0190dba10ff70b46bb0e3bc7d3",
"https://git.kernel.org/stable/c/5746b2a0f5eb3d79667b3c51fe849bd62464220e",
"https://git.kernel.org/stable/c/7a3c7154d5fc05956a8ad9e72ecf49e21555bfca",
"https://git.kernel.org/stable/c/98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68246.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-68246",
"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/68xxx/CVE-2025-68246.json"
}
},
"related_cves": [
{
"value": "CVE-2025-68246",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516769,
"published_at": "2025-12-16T14:21:23.551+00:00"
}