ksmbd: fix iface_list use-after-free during server reset
Summary
| CVE | CVE-2026-139233 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:18:45 UTC |
| Updated | 2026-11-30 14:18:45 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| 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
| Reference | Source | Link | Tags |
|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.