Bug 2338813 (CVE-2025-21633) - CVE-2025-21633 kernel: io_uring/sqpoll: zero sqd->thread on tctx errors
Summary: CVE-2025-21633 kernel: io_uring/sqpoll: zero sqd->thread on tctx errors
Keywords:
Status: NEW
Alias: CVE-2025-21633
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 11:01 UTC by OSIDB Bzimport
Modified: 2025-05-13 11:55 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:7423 0 None None None 2025-05-13 11:55:15 UTC

Description OSIDB Bzimport 2025-01-19 11:01:11 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring/sqpoll: zero sqd->thread on tctx errors

Syzkeller reports:

BUG: KASAN: slab-use-after-free in thread_group_cputime+0x409/0x700 kernel/sched/cputime.c:341
Read of size 8 at addr ffff88803578c510 by task syz.2.3223/27552
 Call Trace:
  <TASK>
  ...
  kasan_report+0x143/0x180 mm/kasan/report.c:602
  thread_group_cputime+0x409/0x700 kernel/sched/cputime.c:341
  thread_group_cputime_adjusted+0xa6/0x340 kernel/sched/cputime.c:639
  getrusage+0x1000/0x1340 kernel/sys.c:1863
  io_uring_show_fdinfo+0xdfe/0x1770 io_uring/fdinfo.c:197
  seq_show+0x608/0x770 fs/proc/fd.c:68
  ...

That's due to sqd->task not being cleared properly in cases where
SQPOLL task tctx setup fails, which can essentially only happen with
fault injection to insert allocation errors.

Comment 1 Avinash Hanwate 2025-01-20 10:37:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011942-CVE-2025-21633-a313@gregkh/T

Comment 6 errata-xmlrpc 2025-05-13 11:55:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:7423 https://access.redhat.com/errata/RHSA-2025:7423


Note You need to log in before you can comment on or make changes to this bug.