Skip to content
Heist/ feed
Back to feed
UnratedFix available

HID: asus: avoid memory leak in asus_report_fixup()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.253, 5.15.203, 6.1.168, 6.12.80, 6.18.21, 6.19.11, 6.6.131
CVEs
CVE-2026-31524
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:50 UTC · Revision 1

Source evidence

HID: asus: avoid memory leak in asus_report_fixup()

core-osv · Original source

Published 22 Apr 2026, 13:54 UTC

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.

osv:CVE-2026-31524

Kernel

Fixed versions: 5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11

Complete source record
{
  "id": "a5f595c6cde30a486d8e4c46cb9e5e1f232bbcc03572e958e38c25ab476e1eb9",
  "url": "https://osv.dev/vulnerability/CVE-2026-31524",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "HID: asus: avoid memory leak in asus_report_fixup()",
    "summary": "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.",
    "evidence": "osv:CVE-2026-31524",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.253",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.203",
            "evidence": "/affected/1/ranges"
          },
          {
            "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-31524",
      "aliases": [
        "CVE-2026-31524"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5703e52cc711bc01e72cf12b86a126909c79d213"
                },
                {
                  "fixed": "726765b43deb2b4723869d673cc5fc6f7a3b2059"
                },
                {
                  "fixed": "ede95cfcab8064d9a08813fbd7ed42cea8843dcf"
                },
                {
                  "fixed": "2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973"
                },
                {
                  "fixed": "f20f17cffbe34fb330267e0f8084f5565f807444"
                },
                {
                  "fixed": "7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd"
                },
                {
                  "fixed": "a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c"
                },
                {
                  "fixed": "84724ac4821a160d47b84289adf139023027bdbb"
                },
                {
                  "fixed": "2bad24c17742fc88973d6aea526ce1353f5334a3"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31524.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.14.0"
                },
                {
                  "fixed": "5.10.253"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.203"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.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-31524.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.949634702Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2bad24c17742fc88973d6aea526ce1353f5334a3",
        "https://git.kernel.org/stable/c/2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973",
        "https://git.kernel.org/stable/c/726765b43deb2b4723869d673cc5fc6f7a3b2059",
        "https://git.kernel.org/stable/c/7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd",
        "https://git.kernel.org/stable/c/84724ac4821a160d47b84289adf139023027bdbb",
        "https://git.kernel.org/stable/c/a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c",
        "https://git.kernel.org/stable/c/ede95cfcab8064d9a08813fbd7ed42cea8843dcf",
        "https://git.kernel.org/stable/c/f20f17cffbe34fb330267e0f8084f5565f807444",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31524.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31524",
        "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-31524.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31524",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521510,
  "published_at": "2026-04-22T13:54:38.389+00:00"
}