Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E8E183AEF54 for ; Thu, 28 May 2026 09:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961172; cv=none; b=Ed5Fae/HFwl0jTkQoxlnCPZwjWdrGFIvMQP2tcMsylvbdcrnudbpRplGWMlSsA1mUQPkjQEx6vTYlhfj5Hret486Ay7VDNODwQwc8jg1DC5D+0J+ODRpwTBXK21Ewra3dpjAdOYQctF5lN+YULHoiY+vwO9HBDrBjLaevnPvKzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961172; c=relaxed/simple; bh=qMOWPjlfzwYzDPcssAQ/DUI0olBUAQI79dh16C5j7/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yzcf5kHiDohyR/6GCBV9kdMKKgDhFV6yi4OUm7fAd7/vV1cxBGezS6kQOmKu565xffuZGFB67Szd+RqlFvdB74qogkc2mZ7jPgDzwdog6sXGrS62Bdb1QK1xiM0doEKXfIwUG7a2jiYo5Np2roUbLBmvaSUqyRI93QcmMbfwoC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R9PuGSEy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="R9PuGSEy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDF641F000E9; Thu, 28 May 2026 09:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961170; bh=pfbT3CBeI9VzxT2+hKIYxpoZSGqeLUpkVyjYMtta2FQ=; h=From:To:Cc:Subject:Date:Reply-To; b=R9PuGSEy1ZgdzyUaTmSWAhNsosx/1XePI4iXJQcL3g/3f64xw0rkJOt+PyV/mHmAb XnHeEafzKi8SR2PTZj9Mb6HpmARwbeuyH8DV+3lnFBcbEApKKPeb8C0TyDirMUsXdV b3tRbT0LY/6VgoHErxXRJT5GoqbObJxk23QhH4cI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46104: selinux: use sk blob accessor in socket permission helpers Date: Thu, 28 May 2026 11:36:09 +0200 Message-ID: <2026052808-CVE-2026-46104-8588@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=2504; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xgh5PkdxqUvANCcNHB2BM5C+221VkateLpIMBIdpXdc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPB08VnrHsxTVA+Z6K9rb6D0QXu952vcc/6W7XFGtj Vc+8P3qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkkHWOYZ7/Vu+vro9XMGYE/ SqV577WZLHWexjC/qFN6582e73XzPVMij0+VOnQi2yAGAA== 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: selinux: use sk blob accessor in socket permission helpers SELinux socket state lives in the composite LSM socket blob. sock_has_perm() and nlmsg_sock_has_extended_perms() currently dereference sk->sk_security directly, which assumes the SELinux socket blob is at offset zero. In stacked configurations that assumption does not hold. If another LSM allocates socket blob storage before SELinux, these helpers may read the wrong blob and feed invalid SID and class values into AVC checks. Use selinux_sock() instead of accessing sk->sk_security directly. The Linux kernel CVE team has assigned CVE-2026-46104 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit d1d991efaf34606d500dcbd28bedc0666eeec8e2 and fixed in 6.18.30 with commit d350fef4bc2467fe1bce15f7a20fe60e01ce41ad Issue introduced in 6.13 with commit d1d991efaf34606d500dcbd28bedc0666eeec8e2 and fixed in 7.0.7 with commit 7eca71f57f194c1638ebb7f4097d6be8fd04c101 Issue introduced in 6.13 with commit d1d991efaf34606d500dcbd28bedc0666eeec8e2 and fixed in 7.1-rc2 with commit 032e70aff025d7c519af9ab791cd084380619263 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-46104 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: security/selinux/hooks.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/d350fef4bc2467fe1bce15f7a20fe60e01ce41ad https://git.kernel.org/stable/c/7eca71f57f194c1638ebb7f4097d6be8fd04c101 https://git.kernel.org/stable/c/032e70aff025d7c519af9ab791cd084380619263