io_uring/io-wq: save worker type before dropping its reference
NIST has received this entry but not started reviewing it.
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.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from a88a0d16e18f18d7221f0c5a1fdf487f5f9079e3, before e47f206b8e582d34ecb4683445ef2b60485021b4; from ba86db02d408ae362ee5f1cde52ffafb37b41ce5, before ac0dfebeb0c38d697036d43ddcfb666613d42c74; from e62e6258ab140b55bbef1f0d288263b75e2f0c20, before 1869f517f7b16cf9ee509f0d46b9a51c15e9df25; from e6db6f9398dadcbc06318a133d4c44a2d3844e61, before ac028f54ba7e7bd47548e94a518f1f2bd73cbd3a; from e6db6f9398dadcbc06318a133d4c44a2d3844e61, before 9d7af67e5425ad08d1ab9bbf4a3ad987d7871834; from e6db6f9398dadcbc06318a133d4c44a2d3844e61, before 2efcf743664ab4a83b4fae1f152bbea1d298e73f; and 5 more | e47f206b8e582d34ecb4683445ef2b60485021b4; ac0dfebeb0c38d697036d43ddcfb666613d42c74; 1869f517f7b16cf9ee509f0d46b9a51c15e9df25; ac028f54ba7e7bd47548e94a518f1f2bd73cbd3a |
| Linux Linux | Software | 6.2 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.8 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.