HID: apple: avoid memory leak in apple_report_fixup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6e143293e17a73c9313f91c5ca3aaacbaef030cf · < 239c15116d80f67d32f00acc34575f1a6b699613| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: apple: avoid memory leak in apple_report_fixup()
The apple_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 apple_report_fixup() function can leak memory by returning an allocated buffer that its caller does not free. The input does not specify how an attacker could trigger the leak or whether access, authentication, or user interaction is required.
Anyone running the Linux kernel should check whether their version contains the affected HID apple code; affected versions were not specified.