io_uring/io-wq: save worker type before dropping its reference
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 9d7af67e5425ad08d1ab9bbf4a3ad987d7871834, Kernel 5.11, Kernel 5.16 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: io_uring/io-wq: save worker type before dropping its reference io_wq_cancel_tw_create() inspects cb->func after calling io_worker_cancel_cb(). For an existing worker, that call can drop the last worker reference and wake io_worker_exit(). If the canceling task is preempted, the worker can be unlinked and freed by kfree_rcu() before the callback function is inspected. KASAN reports a slab-use-after-free read in this path. Save whether the callback belongs to an unpublished continuation worker while its reference is still held, then use the saved result for the conditional free. This preserves the existing accounting and frees only the worker allocated for the canceled continuation.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e6db6f9398dadcbc06318a133d4c44a2d3844e61 <9d7af67e5425ad08d1ab9bbf4a3ad987d7871834, >=5.10.164 <5.11, >=5.15.89 <5.16, >=6.1.7 <6.2, >=e6db6f9398dadcbc06318a133d4c44a2d3844e61 <11239f2b509cd09d76c564b5fe262c70bad8ea3c, >=e6db6f9398dadcbc06318a133d4c44a2d3844e61 <2efcf743664ab4a83b4fae1f152bbea1d298e73f, >=e6db6f9398dadcbc06318a133d4c44a2d3844e61 <37e425460b7c41687e51e3254b1eb1d799da9614, =6.2, =a88a0d16e18f18d7221f0c5a1fdf487f5f9079e3, =ba86db02d408ae362ee5f1cde52ffafb37b41ce5, =e62e6258ab140b55bbef1f0d288263b75e2f0c20 | 9d7af67e5425ad08d1ab9bbf4a3ad987d7871834, 5.11, 5.16, 6.2, 11239f2b509cd09d76c564b5fe262c70bad8ea3c, 2efcf743664ab4a83b4fae1f152bbea1d298e73f, 37e425460b7c41687e51e3254b1eb1d799da9614 |
| linux-kernel: Kernel | >=5.15.89 <5.16, >=6.1.7 <6.2, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=6.2.0 <6.12.117, >=5.10.164 <5.11 | 5.16, 6.2, 6.18.61, 7.3.2, 6.12.117, 5.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket