Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 11C012749C0 for ; Wed, 1 Oct 2025 07:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304645; cv=none; b=iUOT9vtfk8Xg7/VatQykTyAF3FuolKajVfKoqagMhcKk7zFAzVUAKm4tDUf6tRyJ25jgWPVsPrhMUPffoNQFqtN5iLYtjWJ+V2TTiNJ9um+cwQRrSeWcmaRZ6xNs2OeWHGHukKSiMOaX1mpjzJk6ZBjvgAv+IbZr7NIveYMkfJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759304645; c=relaxed/simple; bh=Vxj1M/OnzRc+RoEyKNxas++OX9OfAI3vav4ZcvdA0gI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nGeUinc1rH9m89d9IUPNsdOjtlYKuGVKY7PoJ0wnHT3LyR84v1Aex6lAK/rzUNeCGbGPV85QgmCeSiMtY8Ktmr3K5t37WwckMMHhB/je2B3sNNpyaFzI2NZBDBNpV/5pOUzF15KR6zZHMJzIj3IbSxfq53ugsq03u+fhwIuTjC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PTEIlEDE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PTEIlEDE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 736EFC4CEF5; Wed, 1 Oct 2025 07:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759304644; bh=Vxj1M/OnzRc+RoEyKNxas++OX9OfAI3vav4ZcvdA0gI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PTEIlEDEkb0nyFdWUZIoHiUWljjsyafqrAXG94cLtsj+8PhTVNzXF+NN+P5x30pPe B/GsJ6X0NIh8ME+sxDmEyOv0uucbN8sSwM63t1hk0y7YD5uSxvd19BcMUpaFr8ch4I C0wci2gIFTMZXyiiI9PxXBEbnNwVBfWYH3U5UcKM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39900: net_sched: gen_estimator: fix est_timer() vs CONFIG_PREEMPT_RT=y Date: Wed, 1 Oct 2025 09:43:24 +0200 Message-ID: <2025100117-CVE-2025-39900-bb5f@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2HZIfGc0jm18luCa+robMyWB58AtLWW+p78TPwocKHw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3bk9ViBB+LjVx7+WgmovOkp5xvxOzLpV2dgjH9CXdk bJnYenviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlkT2VY0PlbySSjVvihtE2Y uP+5+3MrXKvcGebKz/3HbqApdO6bQtWJvy1bq24ZpboAAA== 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: net_sched: gen_estimator: fix est_timer() vs CONFIG_PREEMPT_RT=y syzbot reported a WARNING in est_timer() [1] Problem here is that with CONFIG_PREEMPT_RT=y, timer callbacks can be preempted. Adopt preempt_disable_nested()/preempt_enable_nested() to fix this. [1] WARNING: CPU: 0 PID: 16 at ./include/linux/seqlock.h:221 __seqprop_assert include/linux/seqlock.h:221 [inline] WARNING: CPU: 0 PID: 16 at ./include/linux/seqlock.h:221 est_timer+0x6dc/0x9f0 net/core/gen_estimator.c:93 Modules linked in: CPU: 0 UID: 0 PID: 16 Comm: ktimers/0 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__seqprop_assert include/linux/seqlock.h:221 [inline] RIP: 0010:est_timer+0x6dc/0x9f0 net/core/gen_estimator.c:93 Call Trace: call_timer_fn+0x17e/0x5f0 kernel/time/timer.c:1747 expire_timers kernel/time/timer.c:1798 [inline] __run_timers kernel/time/timer.c:2372 [inline] __run_timer_base+0x648/0x970 kernel/time/timer.c:2384 run_timer_base kernel/time/timer.c:2393 [inline] run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403 handle_softirqs+0x22c/0x710 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] run_ktimerd+0xcf/0x190 kernel/softirq.c:1043 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The Linux kernel CVE team has assigned CVE-2025-39900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit d2d6422f8bd17c6bb205133e290625a564194496 and fixed in 6.12.46 with commit a22ec2ee824be30803068a52f78f7ffe3bc879fb Issue introduced in 6.12 with commit d2d6422f8bd17c6bb205133e290625a564194496 and fixed in 6.16.6 with commit e79923824c48b930609680be04cb29253fc4a17d Issue introduced in 6.12 with commit d2d6422f8bd17c6bb205133e290625a564194496 and fixed in 6.17 with commit 9f74c0ea9b26d1505d55b61e36b1623dd347e1d1 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-2025-39900 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: net/core/gen_estimator.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/a22ec2ee824be30803068a52f78f7ffe3bc879fb https://git.kernel.org/stable/c/e79923824c48b930609680be04cb29253fc4a17d https://git.kernel.org/stable/c/9f74c0ea9b26d1505d55b61e36b1623dd347e1d1