CVE Catalog

CVE-2026-98112

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Summary

In the Linux kernel, the ksmbd listener thread exits when its listening socket is shut down. The netdevice notifier shuts down the socket before calling kthread_stop(), so the task_struct can be freed before kthread_stop() gets its reference. The fix creates the listener in a stopped state and holds an extra task_struct reference until kthread_stop_put() completes.

Risk Assessment

Use-after-free of the listener thread could lead to system crash or potential kernel code execution.

Recommendation

Install the kernel patch to ensure safe lifecycle management of ksmbd listener threads.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS