A use-after-free vulnerability in the Linux kernel's ksmbd component related to handling of non-durable supersede sessions has been fixed. The flaw involves a stale pointer to a freed session object that can be accessed during session supersede operations, leading to a kernel memory corruption detected by KASAN. The issue arises because non-durable opens are not detached before session teardown, leaving dangling pointers that can be exploited when a new session supersedes the old one. The fix involves safely looking up the session by ID with proper reference counting and revalidating the pointer before use.