In the Linux kernel, the following vulnerability has been resolved: afunix: read UNIXDIAGVFS data under unixstatelock Exact UNIX diag lookups hold a reference to the socket, but not to u->path. Meanwhile, unixreleasesock() clears u->path under unixstatelock() and drops the path reference after unlocking. Read the inode and device numbers for UNIXDIAGVFS while holding unixstate_lock(), then emit the netlink attribute after dropping the lock. This keeps the VFS data stable while the reply is being built.