{"id":"CVE-2026-31673","summary":"af_unix: read UNIX_DIAG_VFS data under unix_state_lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\naf_unix: read UNIX_DIAG_VFS data under unix_state_lock\n\nExact UNIX diag lookups hold a reference to the socket, but not to\nu-\u003epath. Meanwhile, unix_release_sock() clears u-\u003epath under\nunix_state_lock() and drops the path reference after unlocking.\n\nRead the inode and device numbers for UNIX_DIAG_VFS while holding\nunix_state_lock(), then emit the netlink attribute after dropping the\nlock.\n\nThis keeps the VFS data stable while the reply is being built.","modified":"2026-04-26T04:22:21.190533Z","published":"2026-04-25T08:46:49.246Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31673.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0c739f3785f84af695952c2bac8be2f45082c9b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39897df386376912d561d4946499379effa1e7ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/900a4e0910e98b8caef117d5df00471fa438dcf9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bdf206e740bf2919d818f132c8c9cc7ed91d11c0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31673.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31673"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5f7b0569460b7d8d01ca776430a00505a68b7584"},{"fixed":"0c739f3785f84af695952c2bac8be2f45082c9b8"},{"fixed":"900a4e0910e98b8caef117d5df00471fa438dcf9"},{"fixed":"bdf206e740bf2919d818f132c8c9cc7ed91d11c0"},{"fixed":"39897df386376912d561d4946499379effa1e7ef"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31673.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"fixed":"6.12.83"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.24"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.14"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31673.json"}}],"schema_version":"1.7.5"}