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

Summary

CVECVE-2026-139233
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:45 UTC
Updated2026-11-30 14:18:45 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 0fc403192dcc8def1f6284959141608ac4c86699 77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8 git Not specified
CNA Linux Linux affected b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd 63372a93b7b28665ebf7dc21ea0f7a41b25eea7c git Not specified
CNA Linux Linux affected b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd 590fb6597864980fdaf27436d0bf94dae18a69bb git Not specified
CNA Linux Linux affected b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd d34d38ab0c62fe4eb9e746420c554e6d0e6f54db git Not specified
CNA Linux Linux affected 71d4e39530eab7382a2889fa0259a49f0370df18 git Not specified
CNA Linux Linux affected 499089376206f3f7f09d6852b3ec92f2674d24bb git Not specified
CNA Linux Linux affected 6.12.26 6.12.120 semver Not specified
CNA Linux Linux affected 6.1.158 6.2 semver Not specified
CNA Linux Linux affected 6.6.114 6.7 semver Not specified
CNA Linux Linux affected 6.14 Not specified
CNA Linux Linux unaffected 6.14 semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/d34d38ab0c62fe4eb9e746420c554e6d0e6f54db 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/590fb6597864980fdaf27436d0bf94dae18a69bb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/63372a93b7b28665ebf7dc21ea0f7a41b25eea7c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report