Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758538; b=fMmtDfQJ6mO1BjKCYTr3sN/vfOfeK91RR1qV9ACu8jtzng8vNVs3rR/pW/llRYWTr1Ib 6T6PfnfZiz+2MyUyrEbl68zlnzG+x0cekAoAE/rsogcIYFHiNY278BYalX9+C3ANfcuhH G2jAWwSRHU6ciqR7J5qaJcZR8khdSoSAaDV8H58keIcmOCLd/AHercGlI56YecqTXmL5T zWDYApHdCMqQRy8LN4K8j0D7Z9/7XmsvhYTuIts76QhKeuyXES3RmFAV6CofuF/0k3ew+ dE2SyF9WYNH/IaFm/Wa3NypWfOh9XZSiQZjnK8s40+HJ2+cJKtObcoaZIV3bTvoICwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758538; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=fBxS1zZfYqcOmm65BJzz4pVXpbqCEB2Ws1d7TZiqnjo=; b=SbiHFuvLmduAmtJbwRYfCeYAZjqEGwuB+11+sKljWRdoK9MXZYh8f8g6umxuN+NGzXkg z5g6CtJFULeUgwYSLct2vlx5KEGuW/thHiS3Q/GQjaM/m5TjWbFAqk7M0G+QRXM/K0CJE TUTJpjHKw5vw6C15Z5JYUik7gtdO1vPdyO4YQ3h7eUr7hy5tozqUukXRDRjW8Wx4aCiik Q+bGXkO+/eZO+K1W4zE3RIA+l0eDKv6SX0S+LD92V0UbPcYLaPrZjp7Zv/4XC7gzYT4Nk 7bNBX8N3Kz5U/fKQbOLi3el0X9Px2dJe9qpu/yWJ/nx9tgxLpbXgf5iA5pCiF1yRKzA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kI2uYryL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C270606A328 for ; Fri, 23 Oct 2026 12:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=kI2uYryL Received: by smtp.kernel.org (Postfix) with ESMTPSA id A63841F01829; Fri, 23 Oct 2026 12:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758538; bh=fBxS1zZfYqcOmm65BJzz4pVXpbqCEB2Ws1d7TZiqnjo=; h=From:To:Cc:Subject:Date:Reply-To; b=kI2uYryL5UbCjNO9dT543TDjx5C9rqKoTiNc+v6Q57iglre+PK/wlNlIfyjQkFUdi JMB69jtLDO6+8Sl+gbNB9H+g5zAU5Fo6gG6z1jK5m8yVvq9S7cCNBOZLys5gN0MSBx 6+aWekaxpuMMFB+ENOC2/41FCT4jlKKrpyki39ek= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98971: gpio: exar: initialize the ID before registering its cleanup Date: Fri, 23 Oct 2026 14:19:33 +0200 Message-ID: <2026102311-CVE-2026-98971-d1f5@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2965; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mGwLBh1sZ2TJVED6yXZIzVHqVHHzITH50AG1p55hTfs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A/bbfnLQslLU0FhjlFB8LVJG2S6Wb4uA0NTLnisTi 1ctsv3XEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZcJphQV+M/kt2HWOdgJOv Jmpc3+WS5ZRhyjDPej5HleruI2f0mO1FXmw78uzjw/uPAA== 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: exar: initialize the ID before registering its cleanup devm_add_action_or_reset() invokes the cleanup action immediately when registering the action fails. gpio_exar_probe() currently stores the allocated ID in exar_gpio only after registering the action, so that failure makes exar_devm_ida_free() release ID 0. If the allocated ID is nonzero, this leaks that ID and can free ID 0 belonging to another device. Store the ID before registering the cleanup action so both the immediate failure path and normal device teardown release the correct allocation. The Linux kernel CVE team has assigned CVE-2026-98971 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 5300ebb695fa0672589ab191062392f686fca75d and fixed in 6.6.160 with commit bf3d841ef12fcbec4458e2750956b738b043a226 Issue introduced in 5.11 with commit 5300ebb695fa0672589ab191062392f686fca75d and fixed in 6.12.113 with commit b78c114600ae3df90c083c72c290437b068577c8 Issue introduced in 5.11 with commit 5300ebb695fa0672589ab191062392f686fca75d and fixed in 6.18.57 with commit 01318927a9055136c207399eeb36ce07becac179 Issue introduced in 5.11 with commit 5300ebb695fa0672589ab191062392f686fca75d and fixed in 7.2.11 with commit f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2 Issue introduced in 5.11 with commit 5300ebb695fa0672589ab191062392f686fca75d and fixed in 7.3 with commit 4d69e74034b208588636ecc177e0dd43a7696af3 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-98971 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-exar.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/bf3d841ef12fcbec4458e2750956b738b043a226 https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8 https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179 https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2 https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3