A use-after-free vulnerability in the Linux kernel's TCP TIME_WAIT socket handling was resolved. The flaw involved premature freeing of per-network namespace (per-netns) ehash structures while still in use, leading to potential kernel memory corruption detected by KASAN. The issue arises from improper synchronization between socket removal and resource freeing during TCP connection teardown. The fix introduces waiting for an RCU grace period before freeing private ehash resources to prevent use-after-free conditions.