Linux
ksmbd: fix listener task lifetime on netdev events
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3316a8fc840d82fad5efcf76ad0ea3f76fdca209, < 40581f10c1e56238b157af5f260b8f9518a0cbc1
- >= 3316a8fc840d82fad5efcf76ad0ea3f76fdca209, < a506290f59e1c6ce9ac0a13158640bb8fee93471
Fixed in 40581f10c1e56238b157af5f260b8f9518a0cbc1, a506290f59e1c6ce9ac0a13158640bb8fee93471
- 6.19
Fixed in 0, 7.2.7, 7.3
Mitigation
Upgrade Linux to 40581f10c1e56238b157af5f260b8f9518a0cbc1 or a506290f59e1c6ce9ac0a13158640bb8fee93471 or later.
Upgrade Linux to 0 or 7.2.7 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.