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 14F8413D29F for ; Tue, 21 May 2024 14:40:20 +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=1716302421; cv=none; b=JMNRzl2ZJZh4gh7N7rNnzlxWGUAd3UTUpSliHShvJ6SZuPYGDOi0XOPWn3YOh7IdIJL5CxSi/szFwXgwqHVWON1ALGp4gyF/4PovTg8X9Jt0Cgm2b3bK0KLKzRLxPr4JRipNeb5UNsjxAIEZ0qLYc/WJpqe8uixJwVRMiRT5ZDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302421; c=relaxed/simple; bh=c5+Tbj3/7nP/5uZJRHwSFLeXjJzMs2AKzEzyYsW2JM0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t5S4l/BF2rwxAlIFRcMkqWo6U1B6bloAfP1bbJkAd++ddKXbapuyLYmLMKXPWujsdbb+YD3GEyGJO2i1XoUY64ej6lbjEKBovJ6648VahOIsEgaP7gGmBOQY6dyE9OosxxkKvcr9f3/eche7RZj/A4Pdamau/XubTdlMBoTdtwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZKtrPEaU; 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="ZKtrPEaU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EA24C2BD11; Tue, 21 May 2024 14:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302420; bh=c5+Tbj3/7nP/5uZJRHwSFLeXjJzMs2AKzEzyYsW2JM0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZKtrPEaUNDm9r8KR+WhE4f1gSQxl/0xJ1A1VW2o5l/F1CWetvorN6wOhxXC7B+tAc FFOdcE0LbVH87Z0oFDd3HCgYD/nQVSjCBqf4gy6saI3IR3jwXjGvaKjt+r3zuE5yXX K4Yp7turCvRamiX5dqlSXcbK7lDdifQeDqeyZkwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47351: ubifs: Fix races between xattr_{set|get} and listxattr operations Date: Tue, 21 May 2024 16:36:25 +0200 Message-ID: <2024052140-CVE-2021-47351-8e6c@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=2619; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c5+Tbj3/7nP/5uZJRHwSFLeXjJzMs2AKzEzyYsW2JM0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G201QqVWJH88aSNw8VsEh7noym3Tvlw9mrXDdaG67 NM7F9PrOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiul8Y5vusFNu98s/ZyIU2 32bvkRRjcXxuvZthwdrTKTwmyffNd554yP/g+57je98+3gEA 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: ubifs: Fix races between xattr_{set|get} and listxattr operations UBIFS may occur some problems with concurrent xattr_{set|get} and listxattr operations, such as assertion failure, memory corruption, stale xattr value[1]. Fix it by importing a new rw-lock in @ubifs_inode to serilize write operations on xattr, concurrent read operations are still effective, just like ext4. [1] https://lore.kernel.org/linux-mtd/20200630130438.141649-1-houtao1@huawei.com The Linux kernel CVE team has assigned CVE-2021-47351 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 1e51764a3c2a and fixed in 5.4.133 with commit 7adc05b73d91 Issue introduced in 2.6.27 with commit 1e51764a3c2a and fixed in 5.10.51 with commit 38dde03eb239 Issue introduced in 2.6.27 with commit 1e51764a3c2a and fixed in 5.12.18 with commit 9558612cb829 Issue introduced in 2.6.27 with commit 1e51764a3c2a and fixed in 5.13.3 with commit c0756f75c221 Issue introduced in 2.6.27 with commit 1e51764a3c2a and fixed in 5.14 with commit f4e3634a3b64 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-47351 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: fs/ubifs/super.c fs/ubifs/ubifs.h fs/ubifs/xattr.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/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08 https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6 https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82 https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386 https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5