---
id: CVE-2025-68246
title: |-
  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 c…
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 c…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
published: '2025-12-16'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68246'
references:
  - url: 'https://git.kernel.org/stable/c/35521b5a7e8a184548125f4530552101236dcda1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4587a7826be1ae0190dba10ff70b46bb0e3bc7d3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5746b2a0f5eb3d79667b3c51fe849bd62464220e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7a3c7154d5fc05956a8ad9e72ecf49e21555bfca'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00414
epssPercentile: 0.33952
ingestedAt: '2026-10-14T13:30:58.465Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
