Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98858 Overview
CVE-2026-98858 is a use-after-free vulnerability in the Linux kernel's io_uring subsystem. The flaw affects the SQPOLL (submission queue polling) code path, where the dedicated kernel thread processes task_work from its own list without external notification. A race between io_req_normal_work_add() and io_ring_exit_work() allows the SQPOLL thread to pop and complete the final request before the adder finishes referencing the context, freeing the ctx and tctx while another path still accesses them. KASAN reports confirm slab-use-after-free reads and writes in io_req_normal_work_add and queue_work_on. The issue has been resolved in mainline Linux and queued for stable backports.
Critical Impact
A local attacker exercising io_uring with SQPOLL can trigger a kernel use-after-free, enabling potential kernel memory corruption, denial of service, or local privilege escalation.
Affected Products
- Linux kernel builds containing the io_uring SQPOLL task_work add path prior to the stable fixes referenced below
- Distributions shipping affected mainline and longterm kernels until stable backports land
- Workloads using io_uring with IORING_SETUP_SQPOLL enabled
Discovery Timeline
- 2026-10-18 - CVE-2026-98858 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98858
Vulnerability Analysis
The vulnerability lives in the interaction between the io_uring task-work add path and ring teardown. For rings created with IORING_SETUP_SQPOLL, the SQPOLL kernel thread drains task_work from its own list and does not require a wake-up signal from the submitter. As soon as mpscq_push() publishes an entry, the SQPOLL thread can observe it, pop it, and complete the request.
If that completion drops the last reference keeping the ring alive, io_ring_exit_work() proceeds to free the io_ring_ctx and stop the SQPOLL thread, which also tears down the thread's io_uring_task (tctx). Meanwhile, io_req_normal_work_add() is still dereferencing both structures after its push, resulting in slab-use-after-free reads at io_req_normal_work_add+0x439/0x510 and writes inside queue_work_on+0x25/0x70.
Root Cause
The root cause is a missing publication-safe grace period on the SQPOLL add path. The non-SQPOLL io_req_local_work_add() already holds an RCU read lock across the add and io_ring_exit_work() already waits for an RCU grace period before freeing the context. The SQPOLL variant omitted both the reader-side protection and the matching teardown wait, allowing the completion side to free objects that the add side was still touching.
Attack Vector
Exploitation requires local code execution capable of creating an io_uring instance with IORING_SETUP_SQPOLL. An attacker submits requests designed to race the final task_work publication with ring teardown, winning the window between mpscq_push() publishing the entry and io_req_normal_work_add() finishing its post-push dereferences. The dangling access to a freed slab object can yield kernel memory corruption suitable for denial of service or further escalation.
No verified exploit code is published for CVE-2026-98858. Technical references are available in the upstream commits linked under Kernel Git Commit Fix and Kernel Git Commit Change.
Detection Methods for CVE-2026-98858
Indicators of Compromise
- KASAN splats referencing slab-use-after-free in io_req_normal_work_add on affected hosts
- KASAN splats referencing slab-use-after-free in queue_work_on triggered by processes using io_uring
- Unexpected kernel oops or panic traces originating in io_uring SQPOLL thread teardown
Detection Strategies
- Audit running kernels against the fix commits 42b3332efacfd2140be4cd0dedad4fb96b8ae90e and 395b25968fe854d4efaa19a8e9b7a5b6d1b3eea3 to confirm whether backports are present.
- Enable KASAN on test and canary systems to catch the use-after-free deterministically during fuzzing or workload replay.
- Inventory workloads that call io_uring_setup(2) with the IORING_SETUP_SQPOLL flag, since only those paths are reachable.
Monitoring Recommendations
- Forward kernel ring buffer and journald output to a central log store and alert on BUG: KASAN and general protection fault entries referencing io_uring.
- Track io_uring_setup syscall activity through audit or eBPF probes to identify unexpected SQPOLL ring creation by non-privileged users.
- Monitor for repeated short-lived processes creating and tearing down SQPOLL rings, a pattern consistent with race exploitation attempts.
How to Mitigate CVE-2026-98858
Immediate Actions Required
- Apply vendor-provided kernel updates that include the upstream io_uring SQPOLL task_work fix as soon as they are available for your distribution.
- On multi-tenant and container hosts, restrict io_uring exposure to untrusted workloads using seccomp policies or the kernel.io_uring_disabled sysctl where supported.
- Review and reduce user-space components that opt into IORING_SETUP_SQPOLL until patched kernels are deployed.
Patch Information
The fix holds an RCU read lock across the SQPOLL task_work add and extends io_ring_exit_work() to wait for an RCU grace period before freeing the io_ring_ctx for SQPOLL rings, mirroring the existing behavior of io_req_local_work_add(). See Kernel Git Commit Fix, Kernel Git Commit Change, Kernel Git Commit Update, and Kernel Git Commit Enhancement.
Workarounds
- Disable io_uring globally where feasible by setting kernel.io_uring_disabled=2 on kernels that support the sysctl.
- Block or deny io_uring_setup, io_uring_enter, and io_uring_register syscalls via seccomp profiles in container runtimes and systemd units.
- Avoid creating rings with the IORING_SETUP_SQPOLL flag until the patched kernel is deployed, since only SQPOLL rings are affected.
# Configuration example
# Disable io_uring entirely on hosts that do not require it
echo 'kernel.io_uring_disabled = 2' | sudo tee /etc/sysctl.d/99-disable-io-uring.conf
sudo sysctl --system
# Verify the setting
sysctl kernel.io_uring_disabled
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

