CVE-2023-52903CWE-667

CVE-2023-52903

High · published August 21, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
7.8
In the wild
Unconfirmed
What it is

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

io_uring: lock overflowing for IOPOLL

syzbot reports an issue with overflow filling for IOPOLL:

WARNING: CPU: 0 PID: 28 at io_uring/io_uring.c:734 io_cqring_event_overflow+0x1c0/0x230 io_uring/io_uring.c:734

CPU: 0 PID: 28 Comm: kworker/u4:1 Not tainted 6.2.0-rc3-syzkaller-16369-g358a161a6a9e #0

Workqueue: events_unbound io_ring_exit_work

Call trace:

io_cqring_event_overflow+0x1c0/0x230 io_uring/io_uring.c:734

io_req_cqe_overflow+0x5c/0x70 io_uring/io_uring.c:773

io_fill_cqe_req io_uring/io_uring.h:168 [inline]

io_do_iopoll+0x474/0x62c io_uring/rw.c:1065

io_iopoll_try_reap_events+0x6c/0x108 io_uring/io_uring.c:1513

io_uring_try_cancel_requests+0x13c/0x258 io_uring/io_uring.c:3056

io_ring_exit_work+0xec/0x390 io_uring/io_uring.c:2869

process_one_work+0x2d8/0x504 kernel/workqueue.c:2289

worker_thread+0x340/0x610 kernel/workqueue.c:2436

kthread+0x12c/0x158 kernel/kthread.c:376

ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:863

There is no real problem for normal IOPOLL as flush is also called with

uring_lock taken, but it's getting more complicated for IOPOLL|SQPOLL,

for which __io_cqring_overflow_flush() happens from the CQ waiting path.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00186 · 7.8th percentile
Weakness
CWE-667 · Improper Locking
Published
2024-08-21T11:15Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≤ 5.10.165—
linux/linux_kernel≥ 5.11, < 5.15.895.15.89
linux/linux_kernel≥ 5.16, < 6.1.76.1.7
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (4)
EPSS history
Timeline
  • 21 AUG 06:10Z
    io_uring: lock overflowing for IOPOLL
    cvelistv5