ksmbd: fix iface_list use-after-free during server reset
- CVE-2026-139233
- GHSA-3fj3-725m-2jf3
- EUVD-2026-138938
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix iface_list use-after-free during server reset ksmbd_find_netdev_name_iface_list() walks iface_list for fsctl_query_iface_info_ioctl(), which holds RTNL. But during server reset, ksmbd_tcp_destroy() unlinks and frees the entries without RTNL, and queued SMB requests can still be running at that point. So an FSCTL_QUERY_NETWORK_INTERFACE_INFO request can therefore race with interface destruction and dereference a freed entry. With debug-only instrumentation to make the race deterministic, KASAN reports: BUG: KASAN: slab-use-after-free in ksmbd_find_netdev_name_iface_list ksmbd_find_netdev_name_iface_list fsctl_query_iface_info_ioctl smb2_ioctl handle_ksmbd_work Freed by: kfree ksmbd_tcp_destroy ksmbd_conn_transport_destroy kill_server_store The fix is to detach iface_list to a temporary list under RTNL, then drop RTNL before cleanup because the following cleanup may block and hold RTNL for a long time.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.12.xupdate to 6.12.120 or laterPatch update: breaking changes are unlikely
- If you run a version from 6.6.114 to before 6.7update to 6.7 or laterMinor version change: check the release notes
- If you run a version from 6.1.158 to before 6.2update to 6.2 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.12.26 to before 6.12.120 6.12.120 from 6.6.114 to before 6.7 6.7 from 6.1.158 to before 6.2 6.2 6.14 none stated before 6.14: not affected none stated from 6.12.120 up to 6.12.*: not affected none stated from 6.18.65 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated and 1 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.