When aborting a task with JoinHandle::abort, the future is dropped in the thread calling abort if the task is not currently being executed. This is incorrect for tasks spawned on a LocalSet. This can easily result in race conditions as many projects use Rc or RefCell in their Tokio tasks for better performance.
{
    "nvd_published_at": "2021-08-08T06:15:00Z",
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-362",
        "CWE-366"
    ],
    "github_reviewed_at": "2021-08-18T21:30:23Z",
    "github_reviewed": true
}