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 C40A343172 for ; Wed, 18 Jun 2025 11:02:13 +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=1750244533; cv=none; b=F12rJkU2Dh9Z1fc6XPP5q+9OJed+8HMWezzJmPAR8Nr42wli9ZTxPJIIQFZkeD+R07zllyRnzFPAREE90daCek5VtJCMyayP5dwiof5mbiy43yTVOk5/4TjKlUOrqL0061KjPZZgP/JCmmHbg9IPkkYd49WhtpDjvmX4bvq+sVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244533; c=relaxed/simple; bh=5QDx7bBVWiMDgdm86zzGGV7Uh8hEFyf7VmWYjyZjMgk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IeHZAUFa3ak4fICE03TtU6rtIlS8r3UDu0feLy7xF84WkjzHvf/dByqRtNjGEud8e2dtjIAFLBDugPr+J06ifz5QCOp/Smn1TgcLGpvtutgoanFeqsnihp8TaB6qkSTOvn7mFHVOBTPcqrILTKDxeko3iLgU6qB0y3+wheJj3Jc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qq7j+TnN; 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="qq7j+TnN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 487AFC4CEE7; Wed, 18 Jun 2025 11:02:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244533; bh=5QDx7bBVWiMDgdm86zzGGV7Uh8hEFyf7VmWYjyZjMgk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qq7j+TnNYUYPl0VL6v+mpu9bxW4kYacgFtGMga9m8gCxEDKGqe1v/h/pV7phaBJlB N9hJckvPT6rimbDoGUh1e/8q5zWkDcC1zV8amJz8QStajB+J48KuGWEVpfdVFQBkjI GoiI2PryP4j1diSzTc0UCK1BATGgrlvZESLqxedg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49952: misc: fastrpc: fix memory corruption on probe Date: Wed, 18 Jun 2025 13:00:17 +0200 Message-ID: <2025061810-CVE-2022-49952-0994@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=2652; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+94kAtgg/cJZiVCwYnA3SzKwmTq73NqLkk60fRxO9BA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6wCfx1jtXPuKotddVIhuL9/Qs7KqmW2vSoi7s9b6 zdwfG/siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImE9TMsuHy1TuPjvIPqJh9X fV1ycjYL08Zid4b5VSV8p750h55K7V5tusiI6zXPoa+1AA== 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: misc: fastrpc: fix memory corruption on probe Add the missing sanity check on the probed-session count to avoid corrupting memory beyond the fixed-size slab-allocated session array when there are more than FASTRPC_MAX_SESSIONS sessions defined in the devicetree. The Linux kernel CVE team has assigned CVE-2022-49952 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.4.213 with commit ec186b9f4aa2e6444d5308a6cc268aada7007639 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.10.142 with commit c99bc901d5eb9fbdd7bd39f625e170ce97390336 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.15.66 with commit 0e33b0f322fecd7a92d9dc186535cdf97940a856 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.19.8 with commit c0425c2facd9166fa083f90c9f3187ace0c7837a Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 6.0 with commit 9baa1415d9abdd1e08362ea2dcfadfacee8690b5 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-49952 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/ec186b9f4aa2e6444d5308a6cc268aada7007639 https://git.kernel.org/stable/c/c99bc901d5eb9fbdd7bd39f625e170ce97390336 https://git.kernel.org/stable/c/0e33b0f322fecd7a92d9dc186535cdf97940a856 https://git.kernel.org/stable/c/c0425c2facd9166fa083f90c9f3187ace0c7837a https://git.kernel.org/stable/c/9baa1415d9abdd1e08362ea2dcfadfacee8690b5