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 42F753D349E for ; Mon, 10 Aug 2026 12:13:02 +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=1786363983; cv=none; b=oZuh24szUzo4LN2FbRTPjRbqAYPP0rt3M+GuoIdYglyZU/dGe5OlRfI+h0wu8f2MSeF50VBcEq1jBi7zCqNZ/e5RlzHa4o/WlLWI4ACz9pBpS4AUVQ8LSGKDTYoxjM6arP+yx+j1VH09jeXotyw7zHvndqdYANfYdsXyeQEZOvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363983; c=relaxed/simple; bh=+F4AE0+LTmIofTkW6uecbvf/g6iTg8eXEYi7LTxWQxM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c2LXsYHN/2RAWgpvqyhZ//0Ih6JXlSH2xcceUHe22y/4Au6wjjpuZDHuJHwWz9wo1uwgSqCn6I2sSEbzAO+oC653o/Iy8yNIoEtCqYagls5U2b84yKWDROT1wtl03zaqMeOB2Cl+E3oCIk1VT+/+9iG6zV0VETKahT0HiMF9PRs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GLg8YGS8; 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="GLg8YGS8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C20931F000E9; Mon, 10 Aug 2026 12:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363982; bh=tAqyoe6k75V0rrVqkLoaBzAQ6Br3oya4B0z1o82ByBM=; h=From:To:Cc:Subject:Date:Reply-To; b=GLg8YGS8SsEe3WQGO8Fa8LAxRLjq/Qd0y9k9K35rzxTaR3lA04YH/2/jkUPa8xH6a +29quykRQuUYbQdyWVBNFHeq7t906wjLp7DNWgvelW+mMLBqPtMZxnq0NFP5UJf+nQ LXiHAeaOH2PbzoHmUdJ9fskH6QzY7Rb2uonyKw3Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68357: watchdog: pretimeout: Fix UAF in watchdog_unregister_governor() Date: Mon, 10 Aug 2026 14:01:14 +0200 Message-ID: <2026081040-CVE-2026-68357-c18c@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=3086; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gjYHkASSXjxMYIfjrT2+TqJr4hO1WDRqJ7BwjRl36FA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe7awlR5LF/20TMhJ5FrIBvvktdd1Zz/QUDcqdm7Y6 3S1xCGlI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbS85lhrvyKvhVlyVVhdj17 vx/etpdbbrFwJMNc0dDDX5+edOOf7JTkm2nJ0V7q4XoaAA== 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: watchdog: pretimeout: Fix UAF in watchdog_unregister_governor() When a watchdog governor is unregistered, it updates existing watchdog devices that were using this governor by falling back to `default_gov`. If the governor being unregistered is currently set as `default_gov`, the `default_gov` is never cleared. This leads to 2 use-after-free issues: 1. New watchdog devices registered after this point will inherit the dangling `default_gov`. 2. Existing watchdog devices using the unregistered governor will have their `wdd->gov` reassigned to the dangling `default_gov`. Fix the UAF by clearing `default_gov` if it matches the governor being unregistered. The Linux kernel CVE team has assigned CVE-2026-68357 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit da0d12ff2b829a35e9921918e925d79497b82bef and fixed in 6.6.148 with commit 2e47b91b9b4020fcc01def14d6b6556d66074cf4 Issue introduced in 4.9 with commit da0d12ff2b829a35e9921918e925d79497b82bef and fixed in 6.12.101 with commit 0ca252720f0e38411cfec3431db9bb1aed0a412c Issue introduced in 4.9 with commit da0d12ff2b829a35e9921918e925d79497b82bef and fixed in 6.18.42 with commit 7d1658b066de30f4b23afc14814d22416a971e6e Issue introduced in 4.9 with commit da0d12ff2b829a35e9921918e925d79497b82bef and fixed in 7.1.6 with commit 7993d626983cc58fbde9607333cfd2d57725c197 Issue introduced in 4.9 with commit da0d12ff2b829a35e9921918e925d79497b82bef and fixed in 7.2-rc5 with commit 7362ba0f9c96ac3ad6a2ca3995bd9fc9a28a8661 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-68357 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/watchdog/watchdog_pretimeout.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/2e47b91b9b4020fcc01def14d6b6556d66074cf4 https://git.kernel.org/stable/c/0ca252720f0e38411cfec3431db9bb1aed0a412c https://git.kernel.org/stable/c/7d1658b066de30f4b23afc14814d22416a971e6e https://git.kernel.org/stable/c/7993d626983cc58fbde9607333cfd2d57725c197 https://git.kernel.org/stable/c/7362ba0f9c96ac3ad6a2ca3995bd9fc9a28a8661