From mboxrd@z Thu Jan 1 00:00:00 1970 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 306013A6B77 for ; Sun, 19 Jul 2026 15:41:33 +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=1784475694; cv=none; b=s3Bxo2h018Vig4udx1qZmSYZ0MeTkiRrYNlkMy5bWAZ66jI8aqz1QIC4xqhCzOKAyr1iQx/EKfIx/xS4gjjiUmGGd40oO1hGafZx4nNwCKvDPhdqEhaxl+s4Xm/RzL850nBm4PhAYSt+O18CGMNOicqx48Dh02w3EZb/ErlMMCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784475694; c=relaxed/simple; bh=kZxisMtPlZ2ThhNTIBAvPecsakdyssFJ/pRFMX9ge68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vCl0qHbPazysohOl7aF973C4iO5C9P3Iilkmu/Co1WERq3x/KPPfF1cvRvCiq/rSOYKMwIWuTi+zDC76TnL8A73s94Wbkd37/nwk3A8bPs+4qTAwN6wjk0IASUUKWEfYyDhQt/w1m9o6xTlDmYFEQg3dOMX0LPECJmIxSTOeLDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EO6M/E7W; 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="EO6M/E7W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E241F000E9; Sun, 19 Jul 2026 15:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784475693; bh=wA3/L0cRkRUI4Mu+TEZCMMEveOanP+mqGrYF0HjGh5E=; h=From:To:Cc:Subject:Date:Reply-To; b=EO6M/E7W8vave7N8eRnpENJrTHS98u+d2zGIVJPiNU1geOq+F85weEbU3OBpAXe/X EdeewvkKizMNZSf627LuI1voZ7o04GS3yfT5fW5IMuFHw4ajUx1In/8+5BLPbeSNuF 7GVAB3mGHIVsjzW01m918O6BICIebQoP48tQDhsk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64023: gpio: aggregator: fix a potential use-after-free Date: Sun, 19 Jul 2026 17:38:05 +0200 Message-ID: <2026071902-CVE-2026-64023-8096@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=2313; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VdhrNKHPTbS0Qd8dozJIFB53KQ/D4JzAgONijTKxP60=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkx76MeWlefCo58Kn5j+v5Y3SOVCkFyM6dzZ8folH5de //VzZM7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiMioMCybFztRW1Za47b5u 59HELw19hZXXFzLMr/k72+1BjekEkQ53LxdFD8/Ju7ZvBgA= 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: gpio: aggregator: fix a potential use-after-free On error we free aggr->lookups->dev_id before removing the entry from the lookup table. If a concurrent thread calls gpiod_find() before we remove the entry, it could iterate over the list and call gpiod_match_lookup_table() which unconditionally dereferences dev_id when calling strcmp(). Reverse the order of cleanup. The Linux kernel CVE team has assigned CVE-2026-64023 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8 and fixed in 6.18.34 with commit ea28b286649b70618e9dd3e895812417a7712a11 Issue introduced in 6.16 with commit 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8 and fixed in 7.0.11 with commit 7ac4183a41ba048af89eddd82fe8be64619d0871 Issue introduced in 6.16 with commit 86f162e73d2d81ef6d819c06a3b6c2fda77a79b8 and fixed in 7.1 with commit 30c073cab97afb31901f94de9605177b6b84367e 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-64023 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/gpio/gpio-aggregator.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/ea28b286649b70618e9dd3e895812417a7712a11 https://git.kernel.org/stable/c/7ac4183a41ba048af89eddd82fe8be64619d0871 https://git.kernel.org/stable/c/30c073cab97afb31901f94de9605177b6b84367e