Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix listener task lifetime on netdev events

The listener thread exits when its listening socket is shutdown. The
netdevice notifier shuts down the socket before calling kthread_stop(), so
the task_struct can be freed before kthread_stop() gets its reference.

Create the listener in a stopped state and hold an extra task_struct
reference until kthread_stop_put() completes. Also stop and release
listeners before freeing their interface records during TCP teardown.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Use‑after‑free vulnerability in Linux kernel which can lead to memory corruption and potential local privilege escalation
Action: Immediate Patch
AI Analysis

Impact

In the Linux kernel's SMB daemon, ksmbd, the listener thread terminates when its socket is closed. The network device notifier shuts down that socket before calling kthread_stop, causing the thread's task_struct to be freed while the thread is still running. This race condition results in a use‑after‑free that can corrupt kernel memory, potentially enabling a local attacker to gain elevated privileges or crash the system.

Affected Systems

All Linux kernel releases that contain the ksmbd implementation and have not applied the published fix are affected. The advisory lists no specific kernel version ranges, so any kernel that includes ksmbd prior to the patch should be treated as vulnerable.

Risk and Exploitability

The CVSS score is not provided, and EPSS data is unavailable, indicating that exploitation probability has not been quantified. The vulnerability is not included in the CISA KEV catalog. Exploitation would likely require an attacker with local access to trigger a netdevice event that could create the race condition; based on the description, it is inferred that an attacker could manipulate interface enable/disable or TCP teardown events while ksmbd is active. Because the flaw affects kernel memory, the impact is high, with the potential for privilege escalation or denial of service.

Generated by OpenCVE AI on September 25, 2026 at 13:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that includes the ksmbd listener task lifetime fix, as published by the kernel maintainers.
  • If the patch cannot be applied immediately, disable the ksmbd service or module to eliminate the affected code path; consider unmounting SMB shares or stopping Samba if ksmbd is not in use.
  • Regularly monitor system logs for unexpected network device events or kernel panics that could indicate exploitation attempts, and apply standard hardening practices such as restricting local user privileges and enforcing least‑privilege policies.

Generated by OpenCVE AI on September 25, 2026 at 13:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 13:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix listener task lifetime on netdev events The listener thread exits when its listening socket is shutdown. The netdevice notifier shuts down the socket before calling kthread_stop(), so the task_struct can be freed before kthread_stop() gets its reference. Create the listener in a stopped state and hold an extra task_struct reference until kthread_stop_put() completes. Also stop and release listeners before freeing their interface records during TCP teardown.
Title ksmbd: fix listener task lifetime on netdev events
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T14:42:06.515Z

Reserved: 2026-09-25T10:25:14.316Z

Link: CVE-2026-98112

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:42.340

Modified: 2026-09-25T11:17:42.340

Link: CVE-2026-98112

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T13:30:19Z

Weaknesses