Description
In the Linux kernel, the following vulnerability has been resolved: af_unix: read UNIX_DIAG_VFS data under unix_state_lock Exact UNIX diag lookups hold a reference to the socket, but not to u->path. Meanwhile, unix_release_sock() clears u->path under unix_state_lock() and drops the path reference after unlocking. Read the inode and device numbers for UNIX_DIAG_VFS while holding unix_state_lock(), then emit the netlink attribute after dropping the lock. This keeps the VFS data stable while the reply is being built.
Product status
5f7b0569460b7d8d01ca776430a00505a68b7584 (git) before b9232421a77a649c9376c99fdfc8cb7f79cad34c
5f7b0569460b7d8d01ca776430a00505a68b7584 (git) before 0c739f3785f84af695952c2bac8be2f45082c9b8
5f7b0569460b7d8d01ca776430a00505a68b7584 (git) before 900a4e0910e98b8caef117d5df00471fa438dcf9
5f7b0569460b7d8d01ca776430a00505a68b7584 (git) before bdf206e740bf2919d818f132c8c9cc7ed91d11c0
5f7b0569460b7d8d01ca776430a00505a68b7584 (git) before 39897df386376912d561d4946499379effa1e7ef
3.3
Any version before 3.3
6.6.136 (semver)
6.12.83 (semver)
6.18.24 (semver)
6.19.14 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/b9232421a77a649c9376c99fdfc8cb7f79cad34c
git.kernel.org/...c/0c739f3785f84af695952c2bac8be2f45082c9b8
git.kernel.org/...c/900a4e0910e98b8caef117d5df00471fa438dcf9
git.kernel.org/...c/bdf206e740bf2919d818f132c8c9cc7ed91d11c0
git.kernel.org/...c/39897df386376912d561d4946499379effa1e7ef