Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 5.10.0, < 5.10.97
A use-after-free vulnerability has been identified in the Linux kernel's USB gadget composite driver. This issue arises in the 'composite_dev_cleanup()' function, specifically within the 'configfs_composite_bind()' process. When memory allocation fails, the 'os_desc_req' pointer is freed but not set to NULL, leading to a potential use-after-free scenario. The vulnerability has been addressed in the Linux kernel stable tree.
Exploitation of this vulnerability can lead to a use-after-free condition, allowing for potential memory corruption.
The vulnerability can be reproduced by triggering a memory allocation failure in the 'composite_os_desc_req_prepare()' function. This will cause the 'os_desc_req' pointer to be freed without being nullified. Subsequently, the 'composite_dev_cleanup()' function will attempt to use the now-invalid pointer, leading to a use-after-free vulnerability.
Users can upgrade to the latest version of the Linux kernel stable tree where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.