CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's io_uring subsystem, specifically in the handling of task work cancellation during the waitid callback process. If exploited, this flaw could lead to incorrect task context handling, potentially allowing unauthorized access to process information or causing unexpected behavior in task management. System administrators and developers utilizing Linux kernel versions affected by this issue should prioritize applying patches to mitigate potential risks associated with task management and security.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: io_uring/waitid: honor task_work cancellation io_waitid_cb() may run through the fallback task_work path when task_work_add() can no longer queue work to the originating task. The fallback runs from a kworker and io_uring marks such task work as canceled through tw.cancel. io_waitid_cb() currently ignores tw.cancel and calls __do_wait(). waitid is task-context dependent: __do_wait() performs child lookup relative to current, and the retry path also uses current->signal->wait_chldexit. If the callback runs from the fallback kworker, current is therefore not the task that submitted the request. Honor tw.cancel before entering __do_wait(). Complete the request with -ECANCELED and skip the siginfo copy, since canceled task work may run without the submitting task's userspace execution context. Keep the existing siginfo handling for normal waitid completion and explicit cancellation.