{"id":"CVE-2026-31524","aliases":["CVE-2026-31524"],"related":[],"kind":"vulnerability","state":"published","title":"HID: asus: avoid memory leak in asus_report_fixup()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: asus: avoid memory leak in asus_report_fixup()\n\nThe asus_report_fixup() function was returning a newly allocated\nkmemdup()-allocated buffer, but never freeing it.  Switch to\ndevm_kzalloc() to ensure the memory is managed and freed automatically\nwhen the device is removed.\n\nThe caller of report_fixup() does not take ownership of the returned\npointer, but it is permitted to return a pointer whose lifetime is at\nleast that of the input buffer.\n\nAlso fix a harmless out-of-bounds read by copying only the original\ndescriptor size.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: asus: avoid memory leak in asus_report_fixup()\n\nThe asus_report_fixup() function was returning a newly allocated\nkmemdup()-allocated buffer, but never freeing it.  Switch to\ndevm_kzalloc() to ensure the memory is managed and freed automatically\nwhen the device is removed.\n\nThe caller of report_fixup() does not take ownership of the returned\npointer, but it is permitted to return a pointer whose lifetime is at\nleast that of the input buffer.\n\nAlso fix a harmless out-of-bounds read by copying only the original\ndescriptor size.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nHID: asus: evitar fuga de memoria en asus_report_fixup()\n\nLa función asus_report_fixup() estaba devolviendo un búfer recién asignado con kmemdup(), pero nunca lo liberaba. Cambiar a devm_kzalloc() para asegurar que la memoria se gestione y libere automáticamente cuando el dispositivo es retirado.\n\nEl llamador de report_fixup() no toma posesión del puntero devuelto, pero se permite devolver un puntero cuya vida útil sea al menos la del búfer de entrada.\n\nTambién se corrige una lectura fuera de límites inofensiva copiando solo el tamaño original del descriptor.","source":"nvd"}],"published":"2026-04-22T13:54:38.389Z","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":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"726765b43deb2b4723869d673cc5fc6f7a3b2059","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"ede95cfcab8064d9a08813fbd7ed42cea8843dcf","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"f20f17cffbe34fb330267e0f8084f5565f807444","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"84724ac4821a160d47b84289adf139023027bdbb","status":"affected"},{"type":"git","introduced":"5703e52cc711bc01e72cf12b86a126909c79d213","fixed":"2bad24c17742fc88973d6aea526ce1353f5334a3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","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":"4.14","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","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/726765b43deb2b4723869d673cc5fc6f7a3b2059","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ede95cfcab8064d9a08813fbd7ed42cea8843dcf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f20f17cffbe34fb330267e0f8084f5565f807444","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84724ac4821a160d47b84289adf139023027bdbb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bad24c17742fc88973d6aea526ce1353f5334a3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:37:29.086Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31524","url":"https://www.cve.org/CVERecord?id=CVE-2026-31524","licence":"CVE Terms of Use","modified":"2026-11-05T21:45:06.026Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31524","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31524","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.311Z","epss":{"score":0.00128,"percentile":0.02621,"date":"2026-12-01T12:00:22.000Z"}}