Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9166E21B9F6 for ; Sat, 25 Apr 2026 08:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106845; cv=none; b=WglOwXUrsztSss61qRmZpM/a81kZPuyH2AWneLqcyR6lJ5gVfpmBChW8o1xDn2C9BbB3d4sVpBEAF4diKJJ41vOT6BaGOe1AbKP5CtTz1n+uaWXFGSWLSugS+87/oagn773NBVWtoIsNJdUUpujR+theOCqZdXY9XPoceNnh+1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777106845; c=relaxed/simple; bh=loNSLcPtbHrqiwX3jK/eWDfWf3QGRRr70XE0uhog5+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d4pV/7AUA6ka/oaIduMCPwe5LzU1woFs81vQ83LZPRn3i6g5JlO4mW3AQ6Taq7gSKu1hSV78eX14NPpMOAPPk0Vsj1uYCRu45qu/FrdCJAczEIjaVdfWoQU7C01yI4LDpRFTbbFT7oTO14K6zHztp0uDd8ApLlnV4ieubNO7p+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nF29T+Oy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nF29T+Oy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCFC7C2BCB0; Sat, 25 Apr 2026 08:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777106845; bh=loNSLcPtbHrqiwX3jK/eWDfWf3QGRRr70XE0uhog5+E=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nF29T+OyHPYqSE0dmOJ71loNPeCUNY8N0LYC/UoGEQXKEa4pYkZzJ4Wk8t9wOKWWT qDcsTJrs71gvzKu3c0H4eB78aB9Fr4MEKMo7+ozlh5HwbtnORmCxgEMvdU4Vql/rFE crTKTbzPp4Ut8Yk/Pc2Sb5HAXS+e0Kve6/6ITEy4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31673: af_unix: read UNIX_DIAG_VFS data under unix_state_lock Date: Sat, 25 Apr 2026 10:46:40 +0200 Message-ID: <2026042539-CVE-2026-31673-b5f6@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2613; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cATqObCVCF42GWav3JsEmJaEjSTaC5sW7xzpLctoPt8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlv6vOLpKcHHHzY+zZCnY3hVc2DyBPdK7iv7ivRf6xwR TbzxQqDjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIZDTDPKNbh1JOm77e0OLW 1MyUUte39pdcC8OC5gmPL7/dUxIQ7SzZbLmi9tXdeotKAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-31673 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit 5f7b0569460b7d8d01ca776430a00505a68b7584 and fixed in 6.12.83 with commit 0c739f3785f84af695952c2bac8be2f45082c9b8 Issue introduced in 3.3 with commit 5f7b0569460b7d8d01ca776430a00505a68b7584 and fixed in 6.18.24 with commit 900a4e0910e98b8caef117d5df00471fa438dcf9 Issue introduced in 3.3 with commit 5f7b0569460b7d8d01ca776430a00505a68b7584 and fixed in 6.19.14 with commit bdf206e740bf2919d818f132c8c9cc7ed91d11c0 Issue introduced in 3.3 with commit 5f7b0569460b7d8d01ca776430a00505a68b7584 and fixed in 7.0 with commit 39897df386376912d561d4946499379effa1e7ef Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31673 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/unix/diag.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/0c739f3785f84af695952c2bac8be2f45082c9b8 https://git.kernel.org/stable/c/900a4e0910e98b8caef117d5df00471fa438dcf9 https://git.kernel.org/stable/c/bdf206e740bf2919d818f132c8c9cc7ed91d11c0 https://git.kernel.org/stable/c/39897df386376912d561d4946499379effa1e7ef