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: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Use‑after‑free leading to memory corruption with potential local privilege escalation or denial of service
Action: Immediate Patch
AI Analysis

Impact

The ksmbd SMB daemon in the Linux kernel uses a listener thread that terminates when its listening socket is shut down. The netdevice notifier pre‑emptively shuts down this socket before the thread obtains a reference for kthread_stop(), causing the listener’s task_struct to be freed while the thread is still running. This race condition produces a use‑after‑free that can corrupt kernel memory. The resulting memory corruption enables a local attacker to corrupt kernel data, potentially gain elevated privileges or crash the system. Based on the description, it is inferred that the compromise can be triggered by a local user who can generate netdevice events such as enabling or disabling interfaces or performing a TCP teardown while ksmbd is active.

Affected Systems

All Linux kernel releases that include the ksmbd implementation before the published fix are affected. The CNA list lists Linux without specifying a version range, so any kernel containing ksmbd prior to the patch should be treated as vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score of less than 1% shows a very low but non‑zero likelihood of exploitation. The vulnerability is not listed in CISA KEV. Exploitation requires local access to trigger a netdevice event—such as enabling or disabling a network interface or initiating TCP teardown—while ksmbd is active. If successful, the resulting memory corruption could lead to privilege escalation or service disruption.

Generated by OpenCVE AI on September 30, 2026 at 13:42 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to the patched version that includes the ksmbd listener lifetime fix.
  • If an immediate kernel upgrade is not feasible, disable ksmbd by unloading the module or stopping SMB services that invoke ksmbd, thereby removing the vulnerable code path.
  • Enforce strict local access controls and restrict the ability to trigger netdevice events or network interface changes; consider disabling network hotplug support or isolating untrusted processes from network configuration APIs.

Generated by OpenCVE AI on September 30, 2026 at 13:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 29 Sep 2026 13:15:00 +0000


Fri, 25 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


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-10-19T09:14:04.636Z

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

Link: CVE-2026-98112

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

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

Modified: 2026-10-19T10:18:09.073

Link: CVE-2026-98112

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98112 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T13:45:16Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference