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 AF07E3B27DE for ; Fri, 1 May 2026 14:17:12 +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=1777645032; cv=none; b=Uk7VXWc/L0CnmhY1NLdiDxdYCCpdQfH7NsY8sfFY2AwoRPIlroNp8ize6yvQGh2m67QWZEgxGZPov+aeuWqjal84+g00irgtLNs98KJaREFjQbbjVPGmzxJHawMfP2aMKPrZyBmn5sEoiXSwbGaFQM+giXVIKIHol37iBv94qBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645032; c=relaxed/simple; bh=yNudZ769iKfjyr9Wb5fiF545pGzlbUgoifhs2a334VQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ab96PhAnzdtgE7awd7BunyA69euuB7IcudD6KlMBCTp85sh2hrpjT/nqYtscT5S7Udtt1djaG/tTKsAYABZqoeAd30fub19PByNDHvuHL3o9L6dupGpC1p419zKmal7zL4zNTxZ298k0/gzXT64lZ2Hb1e12RyKpk5SdT0Vt1cc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OxZAv8Gp; 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="OxZAv8Gp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CBE6C2BCB4; Fri, 1 May 2026 14:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645032; bh=yNudZ769iKfjyr9Wb5fiF545pGzlbUgoifhs2a334VQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OxZAv8GplGLAtieDE4IgYmsCvxFZ2od0YScmVzMfPe02inDGFC1njZU1bulBL5uh0 i7J8AVT5JLUR4CiE1mYndo21ph4pdeHU9MA/bwwgSzjXn5kFlSVpy1NsXpWn1G0Dbe +O6PKNnfsA6q9mD/S/W/dbrB7MqfjpUfZq5PGEY0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31730: misc: fastrpc: possible double-free of cctx->remote_heap Date: Fri, 1 May 2026 16:14:41 +0200 Message-ID: <2026050136-CVE-2026-31730-ff8a@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3121; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ibO2SvfvHgs+JThykhRYxBjdCMqzXhQJ+WcNETEQlKE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftvrMNXt790CgqpXNebkjZncz3l9t5d9cLtd4MXNn1 kP27MapHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRAwcZ5pe8zlJfL1VteS24 js9efVV9nO6PYIb5+T0TtkbFXa9v7lA9KT9n24X5vnG/AA== 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: possible double-free of cctx->remote_heap fastrpc_init_create_static_process() may free cctx->remote_heap on the err_map path but does not clear the pointer. Later, fastrpc_rpmsg_remove() frees cctx->remote_heap again if it is non-NULL, which can lead to a double-free if the INIT_CREATE_STATIC ioctl hits the error path and the rpmsg device is subsequently removed/unbound. Clear cctx->remote_heap after freeing it in the error path to prevent the later cleanup from freeing it again. This issue was found by an in-house analysis workflow that extracts AST-based information and runs static checks, with LLM assistance for triage, and was confirmed by manual code review. No hardware testing was performed. The Linux kernel CVE team has assigned CVE-2026-31730 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 0871561055e666da421d779397efcc1e5e964cab and fixed in 6.6.134 with commit 4b8e527aca357a6488680713bd88007cf8f547fe Issue introduced in 6.2 with commit 0871561055e666da421d779397efcc1e5e964cab and fixed in 6.12.81 with commit 0bdee4118340c5a756220c1b29a7dab86bb0aa65 Issue introduced in 6.2 with commit 0871561055e666da421d779397efcc1e5e964cab and fixed in 6.18.22 with commit 3a164f640953cc982804746e772d379171aff5c6 Issue introduced in 6.2 with commit 0871561055e666da421d779397efcc1e5e964cab and fixed in 6.19.12 with commit f67d368d26764a357691b2b3a33d3cb55b435bfc Issue introduced in 6.2 with commit 0871561055e666da421d779397efcc1e5e964cab and fixed in 7.0 with commit ba2c83167b215da30fa2aae56b140198cf8d8408 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-2026-31730 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/4b8e527aca357a6488680713bd88007cf8f547fe https://git.kernel.org/stable/c/0bdee4118340c5a756220c1b29a7dab86bb0aa65 https://git.kernel.org/stable/c/3a164f640953cc982804746e772d379171aff5c6 https://git.kernel.org/stable/c/f67d368d26764a357691b2b3a33d3cb55b435bfc https://git.kernel.org/stable/c/ba2c83167b215da30fa2aae56b140198cf8d8408