{"id":"CVE-2026-31520","aliases":["CVE-2026-31520"],"related":[],"kind":"vulnerability","state":"published","title":"HID: apple: avoid memory leak in apple_report_fixup()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: apple: avoid memory leak in apple_report_fixup()\n\nThe apple_report_fixup() function was returning a\nnewly kmemdup()-allocated buffer, but never freeing it.\n\nThe caller of report_fixup() does not take ownership of the returned\npointer, but it *is* permitted to return a sub-portion of the input\nrdesc, whose lifetime is managed by the caller.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: apple: avoid memory leak in apple_report_fixup()\n\nThe apple_report_fixup() function was returning a\nnewly kmemdup()-allocated buffer, but never freeing it.\n\nThe caller of report_fixup() does not take ownership of the returned\npointer, but it *is* permitted to return a sub-portion of the input\nrdesc, whose lifetime is managed by the caller.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nHID: apple: evitar una fuga de memoria en apple_report_fixup()\n\nLa función apple_report_fixup() estaba devolviendo un búfer recién asignado con kmemdup(), pero nunca lo liberaba.\n\nEl llamador de report_fixup() no toma posesión del puntero devuelto, pero sí está permitido devolver una subporción del rdesc de entrada, cuya vida útil es gestionada por el llamador.","source":"nvd"}],"published":"2026-04-22T13:54:35.534Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"e2f090aeb7b9930a964e151910f4d45b04c8a7e5","status":"affected"},{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"2635d0c715f3fb177e0f80ecd5fa48feb6bf3884","status":"affected"},{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"31860c3f7ac66ab897a8c90dc4e74fa17ca0b624","status":"affected"},{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"be1a341c161430282acdfe2ac99b413271575cf1","status":"affected"},{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"e652ebd29928181c3e6820e303da25873e9917d4","status":"affected"},{"type":"git","introduced":"6e143293e17a73c9313f91c5ca3aaacbaef030cf","fixed":"239c15116d80f67d32f00acc34575f1a6b699613","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.17","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e2f090aeb7b9930a964e151910f4d45b04c8a7e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2635d0c715f3fb177e0f80ecd5fa48feb6bf3884","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31860c3f7ac66ab897a8c90dc4e74fa17ca0b624","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be1a341c161430282acdfe2ac99b413271575cf1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e652ebd29928181c3e6820e303da25873e9917d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/239c15116d80f67d32f00acc34575f1a6b699613","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:37:02.146Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31520","url":"https://www.cve.org/CVERecord?id=CVE-2026-31520","licence":"CVE Terms of Use","modified":"2026-11-05T21:45:05.120Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31520","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31520","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.308Z","epss":{"score":0.00128,"percentile":0.02623,"date":"2026-12-01T12:00:22.000Z"}}