HID: magicmouse: avoid memory leak in magicmouse_report_fixup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91 · < fa95b0146358b49f9858139b67314591fd5871b0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: magicmouse: avoid memory leak in magicmouse_report_fixup()
The magicmouse_report_fixup() function was returning a newly kmemdup()-allocated buffer, but never freeing it.
The caller of report_fixup() does not take ownership of the returned pointer, but it *is* permitted to return a sub-portion of the input rdesc, whose lifetime is managed by the caller.
From the CVE record · Linux
The Linux kernel's magicmouse_report_fixup() allocates a buffer that is never freed, causing a memory leak. The input does not specify how an attacker could trigger the leak or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the HID magicmouse component should check their systems; affected versions are not specified.