Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A use-after-free vulnerability has been identified in the Linux kernel's USB Type-C UCSI driver for Huawei devices. This issue arises because the driver's cleanup function does not properly cancel scheduled work, leading to a race condition. Specifically, the UCSI and associated structures can be freed while a delayed work task is still pending or executing, creating a window where the freed memory can be accessed. The vulnerability can be easily reproduced, as the race condition remains open for three seconds.
Exploitation of this vulnerability can lead to a use-after-free condition, allowing for memory corruption and potential arbitrary code execution.
The vulnerability can be reproduced by loading the UCSI driver for Huawei devices, which schedules a delayed work task. If the driver is removed without canceling this task, the UCSI and associated structures are freed while the task may still be executing or pending, leading to a use-after-free condition. This can be observed using the Kernel Address Sanitizer (KASAN), which will report the use-after-free error.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.