CVE Catalog

CVE-2023-52629

HighCVSS 8.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.24%

14th percentile - higher than 14% of all known CVEs

Summary

In the Linux kernel, a use-after-free (UAF) vulnerability exists in the sh: push-switch driver during removal operations. The order of operations (flush_work before timer_shutdown_sync) can allow work to be rescheduled after memory is freed. The fix reorders operations to stop the timer before the worker.

Risk Assessment

This vulnerability could lead to system crashes or potential kernel code execution, posing a threat to system stability and security.

Recommendation

Update the Linux kernel to a patched version. Also monitor system logs for unusual driver behavior.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: sh: push-switch: Reorder cleanup operations to avoid use-after-free bug The original code puts flush_work() before timer_shutdown_sync() in switch_drv_remove(). Although we use flush_work() to stop the worker, it could be rescheduled in switch_timer(). As a result, a use-after-free bug can occur. The details are shown below: (cpu 0) | (cpu 1) switch_drv_remove() | flush_work() | ... | switch_timer // timer | schedule_work(&psw->work) timer_shutdown_sync() | ... | switch_work_handler // worker kfree(psw) // free | | psw->state = 0 // use This patch puts timer_shutdown_sync() before flush_work() to mitigate the bugs. As a result, the worker and timer will be stopped safely before the deallocate operations.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS