HID: apple: avoid memory leak in apple_report_fixup()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.168, 6.12.80, 6.18.21, 6.19.11, 6.6.131
- CVEs
- CVE-2026-31520
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 00:49 UTC · Revision 1
Source evidence
HID: apple: avoid memory leak in apple_report_fixup()
core-osv · Original sourcePublished 22 Apr 2026, 13:54 UTC
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.
osv:CVE-2026-31520
Kernel
Fixed versions: 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11
Complete source record
{
"id": "f774ebb7458fdf72382a83aec82c65c6b1b369f00514f17a706023e2e6b733a3",
"url": "https://osv.dev/vulnerability/CVE-2026-31520",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HID: apple: avoid memory leak in apple_report_fixup()",
"summary": "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.",
"evidence": "osv:CVE-2026-31520",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.168",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.131",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.80",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.11",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-31520",
"aliases": [
"CVE-2026-31520"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6e143293e17a73c9313f91c5ca3aaacbaef030cf"
},
{
"fixed": "e2f090aeb7b9930a964e151910f4d45b04c8a7e5"
},
{
"fixed": "2635d0c715f3fb177e0f80ecd5fa48feb6bf3884"
},
{
"fixed": "31860c3f7ac66ab897a8c90dc4e74fa17ca0b624"
},
{
"fixed": "be1a341c161430282acdfe2ac99b413271575cf1"
},
{
"fixed": "e652ebd29928181c3e6820e303da25873e9917d4"
},
{
"fixed": "239c15116d80f67d32f00acc34575f1a6b699613"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31520.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.17.0"
},
{
"fixed": "6.1.168"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.131"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.80"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.11"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31520.json"
}
}
],
"modified": "2026-10-28T02:30:24.993829132Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/239c15116d80f67d32f00acc34575f1a6b699613",
"https://git.kernel.org/stable/c/2635d0c715f3fb177e0f80ecd5fa48feb6bf3884",
"https://git.kernel.org/stable/c/31860c3f7ac66ab897a8c90dc4e74fa17ca0b624",
"https://git.kernel.org/stable/c/be1a341c161430282acdfe2ac99b413271575cf1",
"https://git.kernel.org/stable/c/e2f090aeb7b9930a964e151910f4d45b04c8a7e5",
"https://git.kernel.org/stable/c/e652ebd29928181c3e6820e303da25873e9917d4",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31520.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-31520",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31520.json"
}
},
"related_cves": [
{
"value": "CVE-2026-31520",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 491310,
"published_at": "2026-04-22T13:54:35.534+00:00"
}