Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-139233

ksmbd: fix iface_list use-after-free during server reset

Published 30/11/2026 · Updated 30/11/2026 · Linux

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.

Affected products and versions

Linux Linux0fc403192dcc8def1f6284959141608ac4c86699 – < 77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8 · b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd – < 63372a93b7b28665ebf7dc21ea0f7a41b25eea7c · b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd – < 590fb6597864980fdaf27436d0bf94dae18a69bb · b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd – < d34d38ab0c62fe4eb9e746420c554e6d0e6f54db · 71d4e39530eab7382a2889fa0259a49f0370df18 · 499089376206f3f7f09d6852b3ec92f2674d24bb · 6.12.26 – < 6.12.120 · 6.1.158 – < 6.2 · 6.6.114 – < 6.7Fixed in: 77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8 · 63372a93b7b28665ebf7dc21ea0f7a41b25eea7c · 590fb6597864980fdaf27436d0bf94dae18a69bb · d34d38ab0c62fe4eb9e746420c554e6d0e6f54db · 6.12.120 · 6.2 · 6.7
Linux Linux6.14Fixed in: 6.12.120 · 6.18.65 · 7.3.6 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.