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 CE39317A300 for ; Thu, 27 Feb 2025 02:13:32 +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=1740622412; cv=none; b=tFcWCJIBx8Fs6hIXgQZInsWwvJEgrdrNx6gsAPLf1MBhG4isbocZM1xMiBbKchGn9VYDmToQW18zxdQ+sSESsYK0AWU3FdHlLEYu/I01Nip3T6R2cdGQeuYjOy9nCsaZf1xXBEddarMbR5wveDoSrtWvoAKs18m55tthAiXwGxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622412; c=relaxed/simple; bh=Ehjf8mXTYDBcqeEZNW0XyNWavKTFALDz5dUyboAY5vw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vpb8cxv91xd5yE3tubv3zBccaqDH62QqIp0vV/JT99naCpBwfswp0RXFjZz2+Mt/nucvcEiVjrBHzoHXeUZIG8n3mxyJJ5sCqnwVvdEQHA8fEHV3rKUKkfECySvC5eav9rVUDXcy14ZS5p4UhYw/iJc6sUWQUbh1gooRQ5h6Ij0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QCusGpim; 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="QCusGpim" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A479AC4CEE2; Thu, 27 Feb 2025 02:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622412; bh=Ehjf8mXTYDBcqeEZNW0XyNWavKTFALDz5dUyboAY5vw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QCusGpimomEAkgrH9noiLyLb/+GrSdIUvcliSsgfG+X5S0CLWDCIynHU6R7/dLFGb cd4JVVWtGFWe0/4fHR43LRCutqBT9jt3TQrR/rfDAoPa2JDiOLoTXwbNIfmitWi2Mb PtK/vZuq3JKpXp63Gl2Xj1C7n/alP+ZNsC4dnq/s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21734: misc: fastrpc: Fix copy buffer page size Date: Wed, 26 Feb 2025 18:11:16 -0800 Message-ID: <2025022658-CVE-2025-21734-ac40@gregkh> X-Mailer: git-send-email 2.48.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=2861; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ehjf8mXTYDBcqeEZNW0XyNWavKTFALDz5dUyboAY5vw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T24qXHPV7Lvxo/e7jflVir+4/uy1n/TA86r5OX7d/ umrGW7Gd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbqYxzBX8dcDW4O5nD0cD xhDHwF3blLcE32dYMCfOdG9rxMdtii71NRbuO7tUOmMPAgA= 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: Fix copy buffer page size For non-registered buffer, fastrpc driver copies the buffer and pass it to the remote subsystem. There is a problem with current implementation of page size calculation which is not considering the offset in the calculation. This might lead to passing of improper and out-of-bounds page size which could result in memory issue. Calculate page start and page end using the offset adjusted address instead of absolute address. The Linux kernel CVE team has assigned CVE-2025-21734 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 02b45b47fbe84e23699bb6bdc74d4c2780e282b4 and fixed in 6.1.129 with commit c56ba3ea8e3c9a69a992aad18f7a65e43e51d623 Issue introduced in 5.2 with commit 02b45b47fbe84e23699bb6bdc74d4c2780e282b4 and fixed in 6.6.78 with commit c0464bad0e85fcd5d47e4297d1e410097c979e55 Issue introduced in 5.2 with commit 02b45b47fbe84e23699bb6bdc74d4c2780e282b4 and fixed in 6.12.14 with commit 24a79c6bc8de763f7c50f4f84f8b0c183bc25a51 Issue introduced in 5.2 with commit 02b45b47fbe84e23699bb6bdc74d4c2780e282b4 and fixed in 6.13.3 with commit c3f7161123fcbdc64e90119ccce292d8b66281c4 Issue introduced in 5.2 with commit 02b45b47fbe84e23699bb6bdc74d4c2780e282b4 and fixed in 6.14-rc1 with commit e966eae72762ecfdbdb82627e2cda48845b9dd66 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-2025-21734 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/c56ba3ea8e3c9a69a992aad18f7a65e43e51d623 https://git.kernel.org/stable/c/c0464bad0e85fcd5d47e4297d1e410097c979e55 https://git.kernel.org/stable/c/24a79c6bc8de763f7c50f4f84f8b0c183bc25a51 https://git.kernel.org/stable/c/c3f7161123fcbdc64e90119ccce292d8b66281c4 https://git.kernel.org/stable/c/e966eae72762ecfdbdb82627e2cda48845b9dd66