# CVE-2026-139233: ksmbd: fix iface_list use-after-free during server reset

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:51.208Z
- Modified: 2026-11-30T14:18:45.243Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0fc403192dcc8def1f6284959141608ac4c86699 before 77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8; from b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd before 63372a93b7b28665ebf7dc21ea0f7a41b25eea7c; from b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd before 590fb6597864980fdaf27436d0bf94dae18a69bb; from b2d99376c5d61eb60ffdb6c503e4b6c8f9712ddd before d34d38ab0c62fe4eb9e746420c554e6d0e6f54db; 71d4e39530eab7382a2889fa0259a49f0370df18; 499089376206f3f7f09d6852b3ec92f2674d24bb; from 6.12.26 before 6.12.120; from 6.1.158 before 6.2; from 6.6.114 before 6.7; 6.14 (not affected: before 6.14; from 6.12.120 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/77b1955bee3f18fdcbd9cca7c66d8078ccc03cf8>
- <https://git.kernel.org/stable/c/63372a93b7b28665ebf7dc21ea0f7a41b25eea7c>
- <https://git.kernel.org/stable/c/590fb6597864980fdaf27436d0bf94dae18a69bb>
- <https://git.kernel.org/stable/c/d34d38ab0c62fe4eb9e746420c554e6d0e6f54db>

## Sources

- CVE List: [CVE-2026-139233](https://www.cve.org/CVERecord?id=CVE-2026-139233), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139233](https://nvd.nist.gov/vuln/detail/CVE-2026-139233), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139233 · Whole record: https://cve.day/CVE-2026-139233.json · Rebuilt by cve.day 2026-11-30T14:33:12.083Z
