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 BD61231E844 for ; Sun, 18 Oct 2026 15:45:14 +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=1792338315; cv=none; b=JquiKeNWm0rYpsQiWxDr1qWtFeMKZxSLfnG5vdOHJx6CNJos7R29jCoNtLrVtmWhDqYxLttl23F36AnZtxg6fAI5cmDwH71nXoYiggg6i3Rcq1Txue53ODV8svq/xh4knnNi3OumTF+0lXniw8WSejC6GLzbfBFQpNlBCVlOwbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338315; c=relaxed/simple; bh=aPkNQeRPJGrkE8NZZtlYW6hmjIFbsBHBXTcoLOGZZZk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J8MgnEqlW6znTA6mIX27M5sB+GGgOBeg3crOqY0DHHrB9DVeD0zM+CD8V45tp7E6e6yB8yIyS368a6f1KwQLLUWeDvJBuqt3GiDKYTm5TFb7NjImhLx7RRtUMF+ACej2Rycm3YUsT4P5gQQq+DtyFTF6xdKRTpyf12LYUDslRUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iplHJtKt; 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="iplHJtKt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5BA81F000C4; Sun, 18 Oct 2026 15:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338314; bh=eERlJjSbxLbojqDB8g4AywsMlYzyOv+GVD53B+v/MMU=; h=From:To:Cc:Subject:Date:Reply-To; b=iplHJtKtdNfMF5Hp2D4XJKKFzKEKv4uaOxuLRqZPrtuQRhBjCrIrRn7bwhEamF67E 8NMNTLTdHN69OpNGrnrzssPsQfoXRIwCc/HItfk1PHc3xUESdAXuvqGinawWA9sL1z XDplHvkvlXe49yVTgpX+L1DS5GQytltDNaIIH6wA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98656: iio: trigger: cancel reenable_work before freeing trigger Date: Sun, 18 Oct 2026 17:43:51 +0200 Message-ID: <2026101853-CVE-2026-98656-6a46@gregkh> X-Mailer: git-send-email 2.56.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=2910; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=e700PEwYRTa4u+0qFB0IYpoZ3fFmK6WzXAdVV7DeSgI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXlp+Skm4sk3grqjB7Q2ruS25682sucr+CNtU9YX4q Ue8zI/tiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImormCYp7yOhWfZ+VAP91Ua zQcvCVaf+nREgWHBROubb04XHS37fOF/XPNWTxXF447BAA== 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: iio: trigger: cancel reenable_work before freeing trigger iio_trigger_notify_done_atomic() defers ->reenable() into trig->reenable_work on the system workqueue, and the worker dereferences the owning trigger through container_of(). Nothing cancels this work before iio_trig_release() frees the trigger, so a worker armed by the last in-flight IRQ can outlive the free and touch freed memory. Cancel it at the top of iio_trig_release(), which every free path reaches through the device core's final put_device(). Found by an in-house static analysis tool. The Linux kernel CVE team has assigned CVE-2026-98656 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 6.12.113 with commit cf513df1a2c75566cdc802d9da47f62e8d6cfd18 Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 6.18.56 with commit e64703280ce7a23a43c27efebeb7da457c88bf5c Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 7.2.10 with commit 882d0011c59ff8ac15188ec9ce071399ecfa10ad Issue introduced in 5.17 with commit 9020ef659885f2622cfb386cc229b6d618362895 and fixed in 7.3-rc6 with commit 2a57b9246cecd5dd797a42eb310d6c8816f26d9e Issue introduced in 5.15.17 with commit a18aeac73c0f692ba40964f5f56e182312ae843b Issue introduced in 5.16.3 with commit 2c5c948451d57596640b20887b06b523d376eb24 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-98656 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/iio/industrialio-trigger.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/cf513df1a2c75566cdc802d9da47f62e8d6cfd18 https://git.kernel.org/stable/c/e64703280ce7a23a43c27efebeb7da457c88bf5c https://git.kernel.org/stable/c/882d0011c59ff8ac15188ec9ce071399ecfa10ad https://git.kernel.org/stable/c/2a57b9246cecd5dd797a42eb310d6c8816f26d9e