In the Linux kernel, the following vulnerability has been resolved:
ASoC: sofes8336: fix possible use-after-free in sofes8336_remove()
sofes8336remove() calls canceldelayedwork(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free.
Fix by calling canceldelayedwork_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50305.json"
}