cvelo
P4 · InfoEPSS 0.2%

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 versionsFixed in
    from 6.12.26 to before 6.12.1206.12.120
    from 6.6.114 to before 6.76.7
    from 6.1.158 to before 6.26.2
    6.14none stated
    before 6.14: not affectednone stated
    from 6.12.120 up to 6.12.*: not affectednone stated
    from 6.18.65 up to 6.18.*: not affectednone stated
    from 7.3.6 up to 7.3.*: not affectednone stated

    and 1 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.