CVE-2026-98130 PUBLISHED

sctp: fix a TOCTOU race in SCTP_CMD_TIMER_START

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.1

AV:N - A remote SCTP peer's restart COOKIE-ECHO goes through sctp_sf_do_5_2_4_dupcook()/sctp_sf_do_dupcook_a() in SHUTDOWN_SENT and on to sctp_sf_do_9_2_start_shutdown(). That queues SCTP_CMD_TIMER_START for T2-shutdown while T2 is already armed, which reaches the racy timer_pending()/timer_reduce() pair in sctp_cmd_interpreter(). SCTP runs over routable IP. AC:H - The peer must time its COOKIE-ECHO so that T2 expires on another CPU in the window between timer_pending() and timer_reduce(), which is two adjacent statements. The attacker can retry by timing packets around T2 retransmissions, but cannot control when the kernel timer fires relative to softirq processing. The target association must also be in SHUTDOWN_SENT with its socket closing. PR:N - SCTP association setup and the restart COOKIE-ECHO path in sctp_sf_do_dupcook_a() need no authentication. The attacker is just the unauthenticated peer of the association. UI:N - No victim action is needed beyond the SCTP service normally closing an association, which puts it in SHUTDOWN_SENT. The attacker sends all the triggering packets. S:U - The corruption is confined to the kernel's own sctp_association object. No security boundary such as a VM or IOMMU is crossed. C:H - Re-arming the timer without sctp_association_hold() lets sctp_generate_timeout_event() call sctp_association_put() one time too many. The association is then freed while still referenced, a use-after-free of a large slab object whose reclaimed contents can be used to leak kernel memory. I:H - The freed sctp_association holds function-relevant state such as timers, transports and the outqueue. Later timer callbacks and teardown writes into reclaimed memory give a write primitive that could be used to hijack control flow. A:H - The unbalanced refcount causes a refcount underflow or use-after-free during association teardown or a later timer callback, crashing the kernel.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 20a785aa52c82246055a089e55df9dac47d67da1 to e42ba56281ca3ae2dcb3558bebee9a1c9a4831d9 (excl.)
  • affected from 20a785aa52c82246055a089e55df9dac47d67da1 to 00b841bac10230c557be6b38efc48508198fe23e (excl.)
  • affected from 20a785aa52c82246055a089e55df9dac47d67da1 to 3d698d1e6c8bc41e3e1707777a016f1bdd07842d (excl.)
  • affected from 20a785aa52c82246055a089e55df9dac47d67da1 to 2188569e7e1b0bc3f3b557dc97ab7a02befc11c8 (excl.)
  • Version 9c0a4652f750afe3b4468cbcd9335b244ce2facd is affected
  • Version 70989e501fbce502198d82da88358ce453575a05 is affected
  • Version 085bb270b4b1168c93afb37bbafc881207d15443 is affected
  • affected from 4.19.126 to 4.20 (excl.)
  • affected from 5.4.44 to 5.5 (excl.)
  • affected from 5.6.16 to 5.7 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.7 is affected
  • unaffected from 0 to 5.7 (excl.)
  • unaffected from 6.12.111 to 6.12.* (incl.)
  • unaffected from 6.18.53 to 6.18.* (incl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References