Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4711337BE7F for ; Sun, 19 Jul 2026 12:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462572; cv=none; b=CfX/fi5gN+wRPLZcqpTEZOlF6UjNzWn/177FbiUpY9qFJzHQS1GXv9CoDAUOg73EI0ZW04uu0C/s4utJ2ZNT+aJWTbfJ3OWYZxsc+DuFKOBgbwgj3LXg93YBLdZ7e5HxOUT5kBG6CXaEZ08gpey1pfcwYAE/lbYv+3nAFG3AWoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462572; c=relaxed/simple; bh=Z25DOf2Pb7UZhhOp7DV75ZEb/mPewZqqre6Wi3/tQYk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qbwIXCADDmiBVllYEc2175ZdJ+fOEM99f6qIfxY0svjFcdIkeigYnkGx5f5QlLs90WE7bzcKaUWr4mjsx6xh77rY+kWdT7FKX91zr54NBi45QWnUlsy9bG4jOR9eBRcMclY9/YEampGuQoMZGg5BIVFTWYnY9i/ZdDHf/iOCTlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uVb94n42; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uVb94n42" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 679511F000E9; Sun, 19 Jul 2026 12:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462570; bh=bd1ubO30k2+bCPzS117m3leV/OqMsLoxkG+dtj1Tiys=; h=From:To:Cc:Subject:Date:Reply-To; b=uVb94n42Cb0UCMDbamuZlKWj8b44pz+FFZf0OHisl19A2jg5uliEMeyrxwuJg6mQT x3+D7KGEywAMZzX5s+BQuGOnb8vPT6W7AaYKMt2q/aEKWn065zbf4x6YpYy4A7EpaV 8571vKHOex0zZoNsXPl5zZJ8G6JsOtbEpJ9bnnog= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63797: rpmsg: char: Fix use-after-free on probe error path Date: Sun, 19 Jul 2026 14:02:14 +0200 Message-ID: <2026071900-CVE-2026-63797-44ec@gregkh> X-Mailer: git-send-email 2.55.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=3063; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UgYMUMc5dKSXBdWev196pjPd5076ZF7D6fZII2pYdMw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe3aYiNYV3n/ItdviQ6nZu4dl86Yziv6ZeTv037/Pu wtd4pbLdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVmYxzA/fcHnCQoeFDhOs HOoub5cW/6/0KIVhwazfoU/O9Aofz5j1OoaXfelDW7fT0wE= 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: rpmsg: char: Fix use-after-free on probe error path rpmsg_chrdev_probe() stores the newly allocated eptdev in the default endpoint's priv pointer before calling rpmsg_chrdev_eptdev_add(). If rpmsg_chrdev_eptdev_add() then fails, its error path frees eptdev while the default endpoint may still dispatch callbacks with the stale priv pointer. Avoid publishing eptdev through the default endpoint until rpmsg_chrdev_eptdev_add() succeeds. Messages received before the priv pointer is published should be ignored by rpmsg_ept_cb(). Flow-control updates can hit rpmsg_ept_flow_cb() in the same window, so make both callbacks return success when priv is NULL. The Linux kernel CVE team has assigned CVE-2026-63797 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit bc69d10665690492421d926b1cd9a7a36bffd691 and fixed in 6.6.144 with commit ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b Issue introduced in 5.18 with commit bc69d10665690492421d926b1cd9a7a36bffd691 and fixed in 6.12.95 with commit c5ebb06c7e24d531b68707168e04698859d642bc Issue introduced in 5.18 with commit bc69d10665690492421d926b1cd9a7a36bffd691 and fixed in 6.18.38 with commit 104d100212396801f1d9d388282f746e23e2bfd6 Issue introduced in 5.18 with commit bc69d10665690492421d926b1cd9a7a36bffd691 and fixed in 7.1.3 with commit ff268cd9ccbce6472a0658791b417bf11c31ee39 Issue introduced in 5.18 with commit bc69d10665690492421d926b1cd9a7a36bffd691 and fixed in 7.2-rc1 with commit 1ff3f528e67d20e2b1483dcaba899dc7832b2e6b 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-63797 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/rpmsg/rpmsg_char.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/ddf13f91ca82c94ef7ad9c41a434a03313f8eb1b https://git.kernel.org/stable/c/c5ebb06c7e24d531b68707168e04698859d642bc https://git.kernel.org/stable/c/104d100212396801f1d9d388282f746e23e2bfd6 https://git.kernel.org/stable/c/ff268cd9ccbce6472a0658791b417bf11c31ee39 https://git.kernel.org/stable/c/1ff3f528e67d20e2b1483dcaba899dc7832b2e6b