CVE-2026-98130: sctp: fix a TOCTOU race in SCTP_CMD_TIMER_START
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
sctp: fix a TOCTOU race in SCTP_CMD_TIMER_START
The SCTP_CMD_TIMER_START handler checks timer_pending() before calling timer_reduce(). The timer can expire and detach between these operations, causing timer_reduce() to rearm the timer without taking the association reference required for the newly armed timer.
The timer callback later unconditionally drops its association reference, which can leave the association reference count unbalanced and result in use-after-free during association teardown.
Use the return value of timer_reduce() to determine whether the timer was actually armed. Take the association reference only when timer_reduce() successfully starts a new timer, closing the race between checking the timer state and rearming it.
This issue was reported by Nico Yip (@_cyeaa_) working with TrendAI Zero Day Initiative.
The Linux kernel CVE team has assigned CVE-2026-98130 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 20a785aa52c82246055a089e55df9dac47d67da1 and fixed in 6.12.111 with commit e42ba56281ca3ae2dcb3558bebee9a1c9a4831d9 Issue introduced in 5.7 with commit 20a785aa52c82246055a089e55df9dac47d67da1 and fixed in 6.18.53 with commit 00b841bac10230c557be6b38efc48508198fe23e Issue introduced in 5.7 with commit 20a785aa52c82246055a089e55df9dac47d67da1 and fixed in 7.2.7 with commit 3d698d1e6c8bc41e3e1707777a016f1bdd07842d Issue introduced in 5.7 with commit 20a785aa52c82246055a089e55df9dac47d67da1 and fixed in 7.3-rc2 with commit 2188569e7e1b0bc3f3b557dc97ab7a02befc11c8 Issue introduced in 4.19.126 with commit 9c0a4652f750afe3b4468cbcd9335b244ce2facd Issue introduced in 5.4.44 with commit 70989e501fbce502198d82da88358ce453575a05 Issue introduced in 5.6.16 with commit 085bb270b4b1168c93afb37bbafc881207d15443
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-98130
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/sctp/sm_sideeffect.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/e42ba56281ca3ae2dcb3558bebee9a1c9a4831d9 https://git.kernel.org/stable/c/00b841bac10230c557be6b38efc48508198fe23e https://git.kernel.org/stable/c/3d698d1e6c8bc41e3e1707777a016f1bdd07842d https://git.kernel.org/stable/c/2188569e7e1b0bc3f3b557dc97ab7a02befc11c8