CVE-2026-98130
sctp: fix a TOCTOU race in SCTP_CMD_TIMER_START
Refuses IPPROTO_SCTP sockets to mitigate CVE-2026-98130.
High 8.1Vetted
EPSS 0.5%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-98130 is a high (CVSS 8.1) vulnerability in the Linux kernel, published 25 September 2026. A vetted upatch, cve-2026-98130-sctp-block, blocks it on running Linux machines with shirudo until the kernel is patched.
- Severity
- High 8.1 CVSS 3.1
- Chance of exploitation
- 0.5% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-362
- Affected software
- Linux kernel
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-98130, "sctp: fix a TOCTOU race in SCTP_CMD_TIMER_START", was published on 25 September 2026. In sctp_cmd_interpreter() (net/sctp/sm_sideeffect.c), the SCTP_CMD_TIMER_START handler checks timer_pending() before calling timer_reduce(). If the timer expires and detaches between these two calls, timer_reduce() rearms the timer without calling sctp_association_hold() to take the association reference needed for the newly armed timer. When the timer callback later drops its association reference, the association reference count becomes unbalanced and can lead to a use-after-free during association teardown.
Official 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.
Affected versions
| Branch | Bug added in | Fixed in |
|---|---|---|
| 4.19 | 4.19.126 | never (end of life) |
| 5.4 | 5.4.44 | never (end of life) |
| 5.6 | 5.6.16 | never (end of life) |
| 5.10 | 5.7 | 5.10.271 |
| 5.15 | 5.7 | 5.15.222 |
| 6.1 | 5.7 | 6.1.189 |
| 6.6 | 5.7 | 6.6.158 |
| 6.12 | 5.7 | 6.12.111 |
| 6.18 | 5.7 | 6.18.53 |
| 7.2 | 5.7 | 7.2.7 |
| mainline | 5.7 | 7.3 |
Sources
More references from NVD (8)
Mitigation
It attaches to the socket_create LSM hook and returns -EPERM when the protocol is IPPROTO_SCTP (132). Every path that establishes an SCTP association or reaches sctp_cmd_interpreter() requires an SCTP socket, and the hook runs before the kernel allocates the socket or loads the sctp module. A refusal from an earlier BPF LSM program on the same hook is passed on unchanged.
Side effects
- Creating an SCTP socket (
IPPROTO_SCTP) fails withEPERM, from user space (socket(),socketpair(), io_uring) and from the kernel. - SCTP sockets opened before the upatch was loaded keep working.
- Every other socket protocol works as before.
Preemption model and cost
The program keeps no state: no maps, no shared or per-CPU data. It is correct under every preemption model, including preemptible RCU and PREEMPT_RT. Each run costs two integer comparisons, and it runs only when a socket is created, never on the data path.
The policy
21 lines of BPF C, attached at lsm/socket_create.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
SEC("lsm/socket_create")
int BPF_PROG(cve_2026_98130_sctp_block, int family, int type, int protocol,
int kern, int ret)
{
if (ret)
return ret;
if (protocol == IPPROTO_SCTP)
return -EPERM;
return 0;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-98130"
description = "Refuses IPPROTO_SCTP sockets to mitigate CVE-2026-98130"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-98130-sctp-block.bpf.c"
[upatches.tree]
id = "cve-2026-98130-sctp-block"
fixes = ["CVE-2026-98130"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 25 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #19 openedAdd CVE-2026-98130: Refuses IPPROTO_SCTP socketsromanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
- 25 Nov 2026MergeMerged #19romanlab
No human review is recorded on GitHub for this upatch yet.
Evidence
While loaded, creating an SCTP socket failed with EPERM and other socket protocols worked. The test kernel already has the fix and no SCTP support, so this shows the refusal, not protection of a vulnerable kernel.
- Tested
- 25 Nov 2026
- Target
- Linux 7.4 with the fix and without SCTP support
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Machine
- shirudo test VM
| State | socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP) |
|---|---|
| Before loading | EPROTONOSUPPORT |
| Upatch loaded | EPERM |
| After unloading | EPROTONOSUPPORT |
tools-test.log Output of tools/test --setup on the shirudo test VM.
tools/test --setup, 2026-11-25T10:45:25Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-98130 before unsupported this kernel has no SCTP, socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP) failed with EPROTONOSUPPORT loaded blocked socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP) failed with EPERM after unsupported this kernel has no SCTP, socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP) failed with EPROTONOSUPPORT PASS: blocked while loaded; this machine lacks the vulnerable feature, so only the refusal was shown
Use it
Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-98130shirudo bpm push build/packages/cve-2026-98130-1.0.0.bee oci://<registry>/<namespace>/cve-2026-98130 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-98130-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>