CVE-2026-23275

io_uring: ensure ctx->rings is stable for task work flags manipulation

State
Published
Severity
7.8 High
Published
Mar 20, 2026
Updated
Oct 19, 2026
Reserved
Jan 13, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring: ensure ctx->rings is stable for task work flags manipulation

If DEFER_TASKRUN | SETUP_TASKRUN is used and task work is added while the ring is being resized, it's possible for the OR'ing of IORING_SQ_TASKRUN to happen in the small window of swapping into the new rings and the old rings being freed.

Prevent this by adding a 2nd ->rings pointer, ->rings_rcu, which is protected by RCU. The task work flags manipulation is inside RCU already, and if the resize ring freeing is done post an RCU synchronize, then there's no need to add locking to the fast path of task work additions.

Note: this is only done for DEFER_TASKRUN, as that's the only setup mode that supports ring resizing. If this ever changes, then they too need to use the io_ctx_mark_taskrun() helper.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 to before 7cc4530b3e952d4a5947e1e55d06620d8845d4f5Affected
  • 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 to before 46dc07d5f31411cc023f3bf1f4a23a07bf6e0ed1Affected
  • 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 to before 96189080265e6bb5dde3a4afbaf947af493e3f82Affected
LinuxLinux
  • 6.13Affected
  • before 6.13Not affected
  • 6.18.19 through 6.18.*Not affected
  • 6.19.9 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.