Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A memory leak vulnerability has been identified in the Linux kernel's HID magic mouse driver. The issue arises in the 'magicmouse_report_fixup()' function, which returns a buffer allocated with 'kmemdup()' but fails to free it. Although the function's caller does not take ownership of the returned pointer, it can return a portion of the input report descriptor, managed by the caller's lifetime. This vulnerability affects the Linux kernel stable tree.
The vulnerability leads to a memory leak, where allocated memory is not properly freed, potentially causing increased memory usage over time.
The vulnerability can be reproduced by using a magic mouse with a Linux kernel version that includes the flawed 'magicmouse_report_fixup()' function. The issue occurs when the function is called, as it will leak memory by returning an unfreed buffer.
Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been addressed. Instructions for downloading the patched version can be found in the Linux kernel documentation.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.