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 6A1343E0093 for ; Tue, 6 Oct 2026 10:27:00 +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=1791282421; cv=none; b=KXKxBx6ig6cK0btJ6R4LpGQBAHluPz1hoRTrK/1BfjqrfJAymuX/WZs8KdkkIA6JPeiVOY94hR3OCttY2xd4qvDsUmBelEaTjFbQCnFdlVkSkmw/Hc/8DBEvv9/FrMNSqzpKIG/sjhtQtrHsPcCKiiiyfjNRA6Jw/J1bCFf1Mqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282421; c=relaxed/simple; bh=eWlTrM+GdUMThPWuGSl+U0tUH3JLy44vvZvypT6eH+4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tm5PrrWceRvWJfU2cPvuxCxP4D0gFYoUrs0Pma+ec8uAu9jwEtxlBvhQGtHPoksMKxAo4xJiLnSHIz/emneL3pt46+HgJXdXbumQ5dUclX/mFEtWvKOjrlq50pGvk0I2noMMNX9NQvqEsb6HVsAsc/2synGs06MXMQI9PXXYi0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LEwfhihC; 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="LEwfhihC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C71241F000FF; Tue, 6 Oct 2026 10:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282420; bh=Z0wrtcY1YuDyZYSdImf/8ZaBrgskrlNNgSAExw88NJs=; h=From:To:Cc:Subject:Date:Reply-To; b=LEwfhihCFbmgKeIk7v5u1cb+Xl86DkjZRpjLhCtvvGLGRKDMNNdTrf/4oYiE8ZB2v h6Wf5HKgmSGnlBz0OktOy3wdhO8GdQnAunYqCobYGXtK3zYWDVXQkn0TezQfBRe/L6 C/bc9rm8z0EIwxD+pjRbKx9ATL2xF+YO1jsfaUww= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98286: drop_monitor: use timer_shutdown_sync() to prevent timer rearming during teardown Date: Tue, 6 Oct 2026 10:46:27 +0200 Message-ID: <2026100606-CVE-2026-98286-5e63@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=3600; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DDhOS0Cdge4GEGBntZZwCCa4Fids4zqHmaCl4/YQOOw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtgo1laUzu5y89l3kaE8b45Z5i//08ycXnFF/NTX98 434i83WHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/aYMc4W5q6YWpErvKW2Q vsd8sfOPRJVTIsP80J0JAjb6a+PK9Lbn2b7Q3R7IyPkVAA== 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: drop_monitor: use timer_shutdown_sync() to prevent timer rearming during teardown In drop_monitor teardown paths (net_dm_trace_off_set(), net_dm_hw_monitor_stop(), and error unwind paths in net_dm_trace_on_set() and net_dm_hw_monitor_start()), per-CPU timers are stopped using timer_delete_sync() followed by cancel_work_sync(). However, there is a circular dependency between send_timer and dm_alert_work: 1) sched_send_work() (timer callback) schedules dm_alert_work. 2) send_dm_alert() / net_dm_hw_summary_work() calls reset_per_cpu_data() or net_dm_hw_reset_per_cpu_data(). 3) If memory allocation fails under memory pressure in the reset function, it re-arms the timer via mod_timer(&data->send_timer, ...). If dm_alert_work is running concurrently while timer_delete_sync() executes on another CPU, an allocation failure in the worker will re-arm the timer after timer_delete_sync() has already returned. Once cancel_work_sync() completes and module_put() is called, the timer remains active in the timer wheel. If the module is then unloaded, the timer will fire and execute sched_send_work() in freed memory, triggering a kernel panic / use-after-free. Switch from timer_delete_sync() to timer_shutdown_sync(). This guarantees that any in-flight timer handler has finished and prevents subsequent re-arming attempts from running workers from succeeding. When monitoring is restarted later, timer_setup() is invoked, which cleanly re-initializes the timer. The Linux kernel CVE team has assigned CVE-2026-98286 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 9398e9c0b1d44eeb700e9e766c02bcc765c82570 and fixed in 6.18.54 with commit 9616b0c67fbd8cc0b49de7b26cdf2ab33747c80e Issue introduced in 5.12 with commit 9398e9c0b1d44eeb700e9e766c02bcc765c82570 and fixed in 7.2.8 with commit bda4d9525fb91a2388ee09669421b8d505290864 Issue introduced in 5.12 with commit 9398e9c0b1d44eeb700e9e766c02bcc765c82570 and fixed in 7.3-rc4 with commit c391a40f71886b28c082b47270f0e856fa3e1150 Issue introduced in 5.10.27 with commit 2514c7ad115e762562c7bdd58bb1ab3425a98245 Issue introduced in 5.11.11 with commit 439b1164da3612ec7e186e1dc314471e7190bfc7 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-98286 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/drop_monitor.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/9616b0c67fbd8cc0b49de7b26cdf2ab33747c80e https://git.kernel.org/stable/c/bda4d9525fb91a2388ee09669421b8d505290864 https://git.kernel.org/stable/c/c391a40f71886b28c082b47270f0e856fa3e1150