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 1FA9A30F520 for ; Tue, 28 Oct 2025 11:52:00 +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=1761652321; cv=none; b=ZBVXWKkcwmfUvkmaihUdIBL1QnT30fJzyNP8iK4ERs7dcp4aTtLHh8Pz9sed/bYNm1BVqjFqxLhVcbaIQJntkfYBWLJ6UcHOi1Sk7BcwL7/+vBdPlastM+RljQYo221TqPajiAKNc9TxiXSbPlDlPBlMONU0Hud+9/iWFTQEaAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652321; c=relaxed/simple; bh=miByP/SmLXkCXhv01f13idhJ0ezytRuXSQdpDxfmOZM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AiqO8CCcWZI/Ye48u3S7JC56lnha1/ATEyYMI8a4dbC/f0cCFYyyCJX0zP1LVZJz+lSmIvB3+4WWizb/BJdHXROde0Nkgkyjabbq27iun998PO9mwB+8h1KeE93Z6PwkiOZbsI0jkqXa7+EBqH5jf8JSwFgZ/lY+LTdJhV9J1s8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vluJ/7K4; 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="vluJ/7K4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1A4EC4CEE7; Tue, 28 Oct 2025 11:51:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652320; bh=miByP/SmLXkCXhv01f13idhJ0ezytRuXSQdpDxfmOZM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vluJ/7K4IbULQIpPG5+kz9+Jml6aJ60/KYZeMTXj1Ug09ZICW4OfuHBUJSa/ELjhS pB5H76u0n3vVE1DLqEOvlgirUW36u9v7U9DOv2cx13e6ttPdlYgnc6AeY4bKjbvEaN ZS54Hjlm6C3g9QoLXaYjK9N896xapnoyQA3EZ+fU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40036: misc: fastrpc: fix possible map leak in fastrpc_put_args Date: Tue, 28 Oct 2025 12:48:13 +0100 Message-ID: <2025102811-CVE-2025-40036-a568@gregkh> X-Mailer: git-send-email 2.51.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=2724; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ijO6BfYuKfYfgcKRLuSst33CDgCfZ1Mq4+eYdf3ErsM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa6vj7sh8FPFi4dm05Hopf8WWjvtTPi2xP2fGfeBfY MKWvrVRHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRkrcM86wyZogwy1T/+jjj Ot/srEuat5c0NDDM92rcuWNrivCefjk3xytPxCZVerA+AQA= 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 possible map leak in fastrpc_put_args copy_to_user() failure would cause an early return without cleaning up the fdlist, which has been updated by the DSP. This could lead to map leak. Fix this by redirecting to a cleanup path on failure, ensuring that all mapped buffers are properly released before returning. The Linux kernel CVE team has assigned CVE-2025-40036 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 and fixed in 6.1.156 with commit a085658264d0c8d4f795d4631f77d7289a021de9 Issue introduced in 5.1 with commit c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 and fixed in 6.6.112 with commit 3ad42dc66445df6977cf4be0c06f1a655299ce6c Issue introduced in 5.1 with commit c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 and fixed in 6.12.53 with commit 78d33a041555db03903e8037fd053ed74fbd88cb Issue introduced in 5.1 with commit c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 and fixed in 6.17.3 with commit c000f65f0ac93d9f9cc69a230d372f6ca93e4879 Issue introduced in 5.1 with commit c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 and fixed in 6.18-rc1 with commit da1ba64176e0138f2bfa96f9e43e8c3640d01e1e 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-40036 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/a085658264d0c8d4f795d4631f77d7289a021de9 https://git.kernel.org/stable/c/3ad42dc66445df6977cf4be0c06f1a655299ce6c https://git.kernel.org/stable/c/78d33a041555db03903e8037fd053ed74fbd88cb https://git.kernel.org/stable/c/c000f65f0ac93d9f9cc69a230d372f6ca93e4879 https://git.kernel.org/stable/c/da1ba64176e0138f2bfa96f9e43e8c3640d01e1e