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 5F69D1114 for ; Wed, 21 Aug 2024 06:12: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=1724220745; cv=none; b=ilgtuaaE+xo3JiTjjTdQQfnAFIavPlcpnS5L79n9m+w4W8ZKhwtx6gWbapuzMAqVo0przY7HJr6fYIQ8gyiWS7o+cZUCVVjW7MohDKvXDn+3pZLH6uy4ugZWlQlAnYYUNKeqciG1B1vEoCs8JaH78EqnSmv1jUO1cHlOfIwtdTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220745; c=relaxed/simple; bh=6k2O3pGn0s/V8jdkUUckDPpchrwq0ukv1OKVrvuU8I4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LflnxhPm1gQBhCNcIlQ9usOaHGKOBb73eSydG3OBt/EblFnAg8beoMTEJFvuJgfJPGWWZKsEoaBVkwSKpGO9Wi0BZ0cQigTHJVuK9QAidLSg7YFGwvtPVxHuiLV9LTDtC4FhmMT2x38BDGH8LCD8Qza+NcCaOQWSrEaAbHGbY8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=USImbJci; 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="USImbJci" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA4DBC32782; Wed, 21 Aug 2024 06:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220745; bh=6k2O3pGn0s/V8jdkUUckDPpchrwq0ukv1OKVrvuU8I4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=USImbJcihyyAtO8MNoBSOZJhLPlreEQrQzsEeiUzu3DIiTzX+AbtStzc84omriPYR VFRHXuShfv9nWk2xe40PxJ0fehRrY2/DuQwci6QKis+i82YbrYIHY7cTw6FqiLFMON ZGkcrI+S8VIcEakXyGENIHcYNgZMKriG0FkzK4vE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48873: misc: fastrpc: Don't remove map on creater_process and device_release Date: Wed, 21 Aug 2024 14:11:07 +0800 Message-ID: <2024082106-CVE-2022-48873-dc18@gregkh> X-Mailer: git-send-email 2.46.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=2570; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6k2O3pGn0s/V8jdkUUckDPpchrwq0ukv1OKVrvuU8I4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW34Zyxe9/rp53fuLn00/2aX/zGdafOrRnro5q38UL 1I693KhZ0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMpPgFw4KZN5jrpmzhOur+ 8sSPmJTm8rupEi8ZFrSK+z60NNSP9159uGWnSnZi37IVhwA= 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: misc: fastrpc: Don't remove map on creater_process and device_release Do not remove the map from the list on error path in fastrpc_init_create_process, instead call fastrpc_map_put, to avoid use-after-free. Do not remove it on fastrpc_device_release either, call fastrpc_map_put instead. The fastrpc_free_map is the only proper place to remove the map. This is called only after the reference count is 0. The Linux kernel CVE team has assigned CVE-2022-48873 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit b49f6d83e290 and fixed in 5.4.230 with commit 4b5c44e924a5 Issue introduced in 5.2 with commit b49f6d83e290 and fixed in 5.10.165 with commit 193cd853145b Issue introduced in 5.2 with commit b49f6d83e290 and fixed in 5.15.90 with commit 1b7b7bb400dd Issue introduced in 5.2 with commit b49f6d83e290 and fixed in 6.1.8 with commit 35ddd482345c Issue introduced in 5.2 with commit b49f6d83e290 and fixed in 6.2 with commit 5bb96c8f9268 Issue introduced in 5.1.6 with commit aaf5aa44934a 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-48873 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: drivers/misc/fastrpc.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/4b5c44e924a571d0ad07054de549624fbc04e4d7 https://git.kernel.org/stable/c/193cd853145b63e670bd73740250983af1475330 https://git.kernel.org/stable/c/1b7b7bb400dd13dcb03fc6e591bb7ca4664bbec8 https://git.kernel.org/stable/c/35ddd482345c43d9eec1f3406c0f20a95ed4054b https://git.kernel.org/stable/c/5bb96c8f9268e2fdb0e5321cbc358ee5941efc15