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 501683E00B4 for ; Tue, 6 Oct 2026 10:26:12 +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=1791282373; cv=none; b=LrxYqwfBNxbiy7txzUkMo5otiuJBkbBehJP9ifAvQhuUwMKsVOTBIb7/KZbKtiKTsDPRprVVSJrJzWkLPansspuZ8Gx/HSIjC2AoMvEmaUkNyWxPka3CAkXpZLtyGNsVBXsqQV6aShk7eLvb0yyDaQ9Tz0P9rvNcLMAxVlr5Ldo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282373; c=relaxed/simple; bh=lmB67QNwX4X2aNCkxslOZFGbxnpvLnFz4XxKyIFfsgE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GMHPH5svaXrdgKOEwEKVR/GZo6TOc8nY0xh41FXNLv+axHCpCfBqeJ8tXeUP/Ue32ZDoCTiS/R15ZgSQoffTl4rHjxHGJxYgSY4jr7h1nYEIbBbMbt4AM1u5p6yyoOr9+NMw82o3FhYuGqgZxqD00nvRgZmkhvblfe69uXT7/HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aDUAhtcO; 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="aDUAhtcO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98C7D1F000FF; Tue, 6 Oct 2026 10:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282372; bh=Mx3Je2thHBcyzMocZ95O3wn1ugJqcTlTGWmzwIgSfnI=; h=From:To:Cc:Subject:Date:Reply-To; b=aDUAhtcOh37Giw23XiLkIFkgrfWUVJs41L/YGT14abh2B1Mo0obJiOG1uAzz8rzpF rn2aq0/Z4LpatWj9M0LBCBip9zRSFTbJvls9DsqieddwtXjjBafWUATsqqP3XohMEo aenh0/R2Jk2JvoFi2E/UHfOOieUoemrxkAmXBcJo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98258: posix-cpu-timers: Prevent freeing a timer which is queued on the expiry list Date: Tue, 6 Oct 2026 10:45:59 +0200 Message-ID: <2026100657-CVE-2026-98258-c067@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=3360; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2pa5jwVrBQNVZxzjYI1or6KpMh92FtiEYyuuexxwk8k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnJGHLoUP0Muv+aIf/gvf8m5Tzd0CLFsfLGn1tVw9 b3tO2fN64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJrPRnmJ8V1nK+87pSV+2K 9Zwll+SVI5XvlTPMlTM1PXb0fv6Xiz97/qbf33/OadbryQA= 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: posix-cpu-timers: Prevent freeing a timer which is queued on the expiry list Kijo analyzed another race in the POSIX CPU timer code: Commit bf635681c906 converted cpu_timer::firing from a tristate value to a boolean. This lost the distinction between "not owned by the firing list" and "still owned, but delivery was canceled". The resulting race is: expiry handler timer_settime() timer_delete() -------------- --------------- -------------- collect timer onto private firing list firing = true observes firing = true firing = false return TIMER_RETRY wait for handler observes firing = false finish deletion unhash and free timer resume list traversal read freed elist.next -> UAF The firing bit is clearly the wrong indicator since that commit. Check whether the timer is queued on the expiry list or not instead. If it is queued clear the firing bit to prevent signal delivery as before and return TIMER_RETRY so the caller unlocks the timer which allows the expiry code to make progress and remove it from the list. The Linux kernel CVE team has assigned CVE-2026-98258 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit bf635681c906ad056d1fda325de8d1c12c9f8201 and fixed in 6.18.54 with commit 9971dac1a77845ff467146915fcbb9170f6a8209 Issue introduced in 6.13 with commit bf635681c906ad056d1fda325de8d1c12c9f8201 and fixed in 7.2.8 with commit 4336e3f47d9d516441066e9a65eaf076790d8d45 Issue introduced in 6.13 with commit bf635681c906ad056d1fda325de8d1c12c9f8201 and fixed in 7.3-rc4 with commit c21eaa72f02fc6e85621cbe09d303d8fb8bd39cd 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-98258 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: kernel/time/posix-cpu-timers.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/9971dac1a77845ff467146915fcbb9170f6a8209 https://git.kernel.org/stable/c/4336e3f47d9d516441066e9a65eaf076790d8d45 https://git.kernel.org/stable/c/c21eaa72f02fc6e85621cbe09d303d8fb8bd39cd