HID: asus: avoid memory leak in asus_report_fixup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5703e52cc711bc01e72cf12b86a126909c79d213 · < a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: asus: avoid memory leak in asus_report_fixup()
The asus_report_fixup() function was returning a newly allocated kmemdup()-allocated buffer, but never freeing it. Switch to devm_kzalloc() to ensure the memory is managed and freed automatically when the device is removed.
The caller of report_fixup() does not take ownership of the returned pointer, but it is permitted to return a pointer whose lifetime is at least that of the input buffer.
Also fix a harmless out-of-bounds read by copying only the original descriptor size.
From the CVE record · Linux
The Linux kernel’s asus_report_fixup() function can leak an allocated buffer and perform a harmless out-of-bounds read. The input does not specify how an attacker could trigger this issue or whether access, authentication, or user interaction is required.
Teams running the Linux kernel should check whether their kernel includes the affected HID asus code; affected versions are not specified.