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 155B6381EA6 for ; Sat, 25 Jul 2026 08:58:17 +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=1784969898; cv=none; b=fIli/0WyIHBwjiUO4pgXP8Eq7DsPs6Nzy8fKIiCE/qVPhLEQ8v79E4cyERyV95i0vOS8a2nTC1jvvgsTbcHzmUYi5TUDYs+g7P0nAaBQheSFBPv/GHhZMkMOvdUgxD63PmCu+GtWbQx7DojvKkiUxu3QPyWUy3i5W1h1ufGlQkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969898; c=relaxed/simple; bh=JWT1x4z610tOB8UmI1zDydOzfJd8Zun90J4uZBVKioI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A+iLXT9Tl8jmVCKCoJslCMlVqwFlGlHRL1AN/4aAHx6lH2tHPlrWzhEHTD7PK3hGDOCSUXDlOIGfqODnfZTMZYWE6zO7g07/wpkE+Z4LEZ8iSX+orKHuYRtaVkEZOgE3jJSv1Ydvs9UAwJOlJLf1+qzDadr5K22J38cb5z5TKh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gW6j3sJk; 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="gW6j3sJk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79D511F000E9; Sat, 25 Jul 2026 08:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969897; bh=EHgChnTY/0Ym9dzfDyeFuBTDq9A6UzsnG1diebKxNho=; h=From:To:Cc:Subject:Date:Reply-To; b=gW6j3sJkaTwaLYSS/TOIPwGNnGfE+p/dckqk4dDRXxh8CthsX+Tlt8j0U74xOieeo OombZz+KEAYmjzjkjmHy908HX/dL30Bfwx2kr37Wlhx50KTvEMUJQG9DrbdAQ0EF8t InrS5z/plrkmw8legY3UzkUwL3lS8QmjbI/rCRCY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64420: mfd: cros_ec: Delay dev_set_drvdata() until probe success Date: Sat, 25 Jul 2026 10:50:37 +0200 Message-ID: <2026072534-CVE-2026-64420-296c@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=4392; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7bPFamdUtuW8xbDnkk+5jpfBF6aylwb5vRvwFmY4AR8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFUmPg/2jF7NLPZnNE1kR+vIbT8HlvrUzxOpmXHK7/ ldg7/FHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRA2sZFpydZayQHOx4KEhz S45qq3vqJ3cBDoYFu1fHal8MjU7I5n+Y2bb0u8qRE51VAA== 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: mfd: cros_ec: Delay dev_set_drvdata() until probe success If ec_device_probe() fails, cros_ec_class_release releases memory for the cros_ec_dev structure. However, because the drvdata was already set, sub-drivers like cros_ec_typec can still retrieve the stale pointer via the platform device. This leads to a use-after-free when cros_ec_typec attempts to access &typec->ec->ec->dev on a device that has already been released. Move dev_set_drvdata() to ensure that the pointer is only made available once all initialization steps have succeeded. sysfs: cannot create duplicate filename '/class/chromeos/cros_ec' Call trace: sysfs_do_create_link_sd+0x94/0xdc sysfs_create_link+0x30/0x44 device_add_class_symlinks+0x90/0x13c device_add+0xf0/0x50c ec_device_probe+0x150/0x4f0 platform_probe+0xa0/0xe0 ... BUG: KASAN: invalid-access in __memcpy+0x44/0x230 Write at addr f5ffff809e2d33ac by task kworker/u32:5/125 Pointer tag: [f5], memory tag: [fe] Tainted : [W]=WARN, [O]=OOT_MODULE Hardware name: Google Navi unprovisioned 0x7FFFFFFF/sku0 board/sku3 Workqueue: events_unbound deferred_probe_work_func Call trace: __memcpy+0x44/0x230 cros_ec_check_features+0x60/0xcc [cros_ec_proto] cros_typec_probe+0xe8/0x6e0 [cros_ec_typec] platform_probe+0xa0/0xe0 The Linux kernel CVE team has assigned CVE-2026-64420 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 5.10.261 with commit 24522713034d521ea4b5f5f36342e2b2f7e73bd6 Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 5.15.212 with commit f7e81dc181d9fe8ab977158042cd193e8cc12091 Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 6.1.178 with commit 257203d83204b192d1265a916b42ca0d499bb117 Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 6.6.145 with commit 729ae27dc2503a7c1f92da1859efb45da03e4fa0 Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 6.12.96 with commit ed2941e5db016a0c600b25f1972620e6e223d9fa Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 6.18.39 with commit b5f41d5bf08e7b1b14fa0bd640975e6d78dc006d Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 7.1.4 with commit fc030c5b116f668d4ca86dca63742ddbc98d1665 Issue introduced in 4.12 with commit 1c1d152cc5ac3a67d199728a9ba0b4f54a498f8b and fixed in 7.2-rc1 with commit 8b2c1d41bc36c100b38ce5ee6def246c527eaf8a 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-64420 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/mfd/cros_ec_dev.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/24522713034d521ea4b5f5f36342e2b2f7e73bd6 https://git.kernel.org/stable/c/f7e81dc181d9fe8ab977158042cd193e8cc12091 https://git.kernel.org/stable/c/257203d83204b192d1265a916b42ca0d499bb117 https://git.kernel.org/stable/c/729ae27dc2503a7c1f92da1859efb45da03e4fa0 https://git.kernel.org/stable/c/ed2941e5db016a0c600b25f1972620e6e223d9fa https://git.kernel.org/stable/c/b5f41d5bf08e7b1b14fa0bd640975e6d78dc006d https://git.kernel.org/stable/c/fc030c5b116f668d4ca86dca63742ddbc98d1665 https://git.kernel.org/stable/c/8b2c1d41bc36c100b38ce5ee6def246c527eaf8a