CVE-2026-98112

ksmbd: fix listener task lifetime on netdev events

Published Sep 25, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 October 28, 2026 at 21:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-416
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'}

Type Values Removed Values Added
Weaknesses CWE-416
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
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:14 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Analyzed
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 28, 2026, 6:49 PM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM