Unverified50% confidenceFactExact time
As long as any process holds a reference to a socket file descriptor, the corresponding socket will not be reclaimed by the kernel—this is the underlying mechanism by which port leaks can survive across processes.
1
Sources
50%
Confidence
Long-term
Relevance
8/9/2026
First Seen
Sources
Cursor端口泄漏:Linux下600+端口转发未清理的排查与解决
Related Claims
UnverifiedIn the Linux kernel, each network socket is represented as a file descriptor; when a process forks a child process, the child inherits the parent's file descriptor table via a reference-counting mechanism, causing port leaks to survive across processes.76% similarUnverifiedWhen a parent process exits without properly closing its sockets, if child processes have inherited these file descriptors, they will be kept in a LISTEN or ESTABLISHED state indefinitely, causing port forwarding to become orphaned.70% similarUnverifiedAfter LeakCanary triggers a heap dump, it saves the heap memory in .hprof snapshot format and restores the complete reference chain from the GC Root to the leaked object.62% similarUnverifiedThe container escape vulnerability CVE-2019-5736 (runc vulnerability) was discovered because all containers share the same kernel61% similarUnverifiedThe Linux kernel contains more than 28 million lines of code; containers share the same host kernel, and kernel vulnerabilities can become escape paths.60% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/714153API
curl https://kongchang.com/api/v1/knowledge/claims/714153MCP
get_claim(id=714153)