From mboxrd@z Thu Jan 1 00:00:00 1970 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 108C712F5BF for ; Tue, 21 May 2024 14:23:05 +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=1716301385; cv=none; b=nDIJI1KyamzhofdcmRZ3IvHATEyFLFOGrEXWOgTMHDnfgkGjKoTrnqbNqT++Ftx0ImdIsuac5IoYOC88TmuBECdaNxlqM4Ozv6VaN8SqoArYsh9fvoDWkvGb2X4lKXV8sLPmeaGGvrU9pHz2HXXIIdDujl53+waZEgaVpaXNNIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301385; c=relaxed/simple; bh=+WVO6/JHBj9y5tuahzFxclmu+PZVO2Xbw/wlnhlTR7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XduVKx0NZ3G/kNE5SdNdGo7WmvBKhd9hsxmNHFPfAPnXunz85vg/31oSkscmBZ/d7ih50pqaROk4mB6taBJPbqRIANGH4EbAD51mrrqjWxz/c4aklUx6zMe/OfmZn7/PLF3RXswP8TULqN+G8Ep/wclMgBrPmiHi3+qoe0tABp8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zeSmK3dC; 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="zeSmK3dC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B2B3C4AF09; Tue, 21 May 2024 14:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301384; bh=+WVO6/JHBj9y5tuahzFxclmu+PZVO2Xbw/wlnhlTR7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zeSmK3dC2Q4Ow0glWY/0pdqdcwAmORGAEcMFRa3wqjVmF1642CRJW0eFKdW8YwPFT 6+rNYWDqVuZ4JQWen/h70f93j/fBpf900vWMSfHngvtKVTmYaCl187twyP1rCOJ7+e btAAAbeKKd4PMPGDyIgpjiGyr9iPSV2FweNDNtaI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47285: net/nfc/rawsock.c: fix a permission check bug Date: Tue, 21 May 2024 16:20:39 +0200 Message-ID: <2024052155-CVE-2021-47285-4fee@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2502; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+WVO6/JHBj9y5tuahzFxclmu+PZVO2Xbw/wlnhlTR7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a7uXTnuWkMfCKRV2Qu741zeR4fPi79xq2JEodvbbj 4CH3ZMsO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPK0MC24+ap6yYF59/Gyl rK/cDOW3D0Rz6THMd9p7QqXuXN4Snxst4W+au0qSz12+DgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net/nfc/rawsock.c: fix a permission check bug The function rawsock_create() calls a privileged function sk_alloc(), which requires a ns-aware check to check net->user_ns, i.e., ns_capable(). However, the original code checks the init_user_ns using capable(). So we replace the capable() with ns_capable(). The Linux kernel CVE team has assigned CVE-2021-47285 to this issue. Affected and fixed versions =========================== Fixed in 4.4.273 with commit c08e0be44759 Fixed in 4.9.273 with commit d6a21a3fb033 Fixed in 4.14.237 with commit 38cb2e23188a Fixed in 4.19.195 with commit ec72482564ff Fixed in 5.4.126 with commit f3ed12af6bbb Fixed in 5.10.44 with commit 1e5cab50208c Fixed in 5.12.11 with commit 90d0a3c76965 Fixed in 5.13 with commit 8ab78863e9ef 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-2021-47285 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/nfc/rawsock.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/c08e0be44759d0b5affc5888be4aa5e536873335 https://git.kernel.org/stable/c/d6a21a3fb03300fbaa9fc3ed99f8b0962ce28362 https://git.kernel.org/stable/c/38cb2e23188af29c43966acee9dbb18b62e26cfe https://git.kernel.org/stable/c/ec72482564ff99c6832d33610d9f8ab7ecc81b6d https://git.kernel.org/stable/c/f3ed12af6bbbaf79eddb0ae14656b8ecacea74f0 https://git.kernel.org/stable/c/1e5cab50208c8fb7351b798cb1d569debfeb994a https://git.kernel.org/stable/c/90d0a3c76965d7a10fc87c07be3e9714e2130d5c https://git.kernel.org/stable/c/8ab78863e9eff11910e1ac8bcf478060c29b379e