CVE-2026-98112: ksmbd: fix listener task lifetime on netdev events

Published Sep 25, 2026
·
Updated

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 kthreadstop(), so the taskstruct can be freed before kthreadstop() gets its reference.

Create the listener in a stopped state and hold an extra taskstruct reference until kthreadstopput() completes. Also stop and release listeners before freeing their interface records during TCP teardown.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Create the listener in a stopped state and hold an extra task_struct reference until kthread_stop_put() completes, preventing the task_struct from being freed before kthread_stop() obtains its reference during netdevice-triggered TCP teardown.

Event History

Sep 25, 2026
CVE Published
via MITRE·10:35 AM
Data Sourced
via MITRE·10:35 AM
Description

Frequently Asked Questions

1

When can this issue be triggered?

It can be triggered during network-device events or TCP teardown involving ksmbd listeners. The problematic sequence occurs when a listener socket is shut down and its listener thread exits before the notifier calls kthread_stop().

2

What is the underlying failure condition?

The listener task_struct may be freed before kthread_stop() obtains its reference. The fix keeps an additional task_struct reference until kthread_stop_put() completes and releases listeners before their interface records are freed during TCP teardown.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203