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 6C61A199934 for ; Thu, 1 May 2025 14:13:17 +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=1746108797; cv=none; b=lqoKfBcGi9404BvWD6NsNYbBjo1/+6H+Q/s4fzRSfJNqbLiDcmrC1yxK3FvUgj6GRxUByO6caDKlJMKypfdq0MyRd8UbnBhJmimR6OB5KaBr6nbEGPv6gOe/PsMwSTn3QI4BZDvJgI5uoEIml7Mk7mkfBK0TMiEEnDeRxjGA7bc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108797; c=relaxed/simple; bh=8NK+nfcnDOv42GGh2kN36ST9GnAjrOeNdcoRNGHFGCA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d8qcqVHG1XyCdD7YkV6IwEJ8jw80d2RbUbX/sXNRUAbMfrMIBF7zEB4LQQNRoCCEpuGC0zd6UzBucmh2taf1JS0y6hGaBGnTMM4xKBkITCg9o/DOpHny4XSLn+3cSYBpmKPSAqIsMC2ISJseCpkvoeegR3l6/6VifmXzxcg8rrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bD5mW4ID; 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="bD5mW4ID" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8615C4CEE3; Thu, 1 May 2025 14:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108797; bh=8NK+nfcnDOv42GGh2kN36ST9GnAjrOeNdcoRNGHFGCA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bD5mW4IDc8HnHMsLzkp9h7rPMunkFmUQfQgB4PRUWWEExqs7GYTS28sx4ktEsV3cS prTTmBhOEJOwNEebHnwhUEqS34fAPL+O6MxjJMb6zDHkHKsnzjLVNEqoj3r/uelULz ojaDL8qbri9XX88n2N5DAE4/rih82Nzt8xfEOdtc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49815: erofs: fix missing xas_retry() in fscache mode Date: Thu, 1 May 2025 16:10:05 +0200 Message-ID: <2025050131-CVE-2022-49815-ebd2@gregkh> X-Mailer: git-send-email 2.49.0 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=2087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uBefiPJqhl5EOC3gmZtFm3hu1DhWVVxG/Lseu9AU7UI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDbPvrHhiVMgQHcnT1STCNrnpzN5YXsOLPExy0ZGpS 75vqGzviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIksimdYcMq0VXGr0rt1rFY+ hWnhQZM0JRldGeZXhqVwF/84Z8r+VmzahmNMZo85+cwB 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: erofs: fix missing xas_retry() in fscache mode The xarray iteration only holds the RCU read lock and thus may encounter XA_RETRY_ENTRY if there's process modifying the xarray concurrently. This will cause oops when referring to the invalid entry. Fix this by adding the missing xas_retry(), which will make the iteration wind back to the root node if XA_RETRY_ENTRY is encountered. The Linux kernel CVE team has assigned CVE-2022-49815 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit d435d53228dd039fffecae123b8c138af6f96f99 and fixed in 6.0.10 with commit dbc98fe99e17ed18f2f272d5fe880d844b1c68c3 Issue introduced in 5.19 with commit d435d53228dd039fffecae123b8c138af6f96f99 and fixed in 6.1 with commit 37020bbb71d911431e16c2c940b97cf86ae4f2f6 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-2022-49815 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/erofs/fscache.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/dbc98fe99e17ed18f2f272d5fe880d844b1c68c3 https://git.kernel.org/stable/c/37020bbb71d911431e16c2c940b97cf86ae4f2f6