{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5703e52cc711bc01e72cf12b86a126909c79d213"
            },
            {
              "fixed": "726765b43deb2b4723869d673cc5fc6f7a3b2059"
            },
            {
              "fixed": "ede95cfcab8064d9a08813fbd7ed42cea8843dcf"
            },
            {
              "fixed": "2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973"
            },
            {
              "fixed": "f20f17cffbe34fb330267e0f8084f5565f807444"
            },
            {
              "fixed": "7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd"
            },
            {
              "fixed": "a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c"
            },
            {
              "fixed": "84724ac4821a160d47b84289adf139023027bdbb"
            },
            {
              "fixed": "2bad24c17742fc88973d6aea526ce1353f5334a3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31524.json"
  },
  "details": "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.",
  "id": "CVE-2026-31524",
  "modified": "2026-08-12T03:51:43.692415664Z",
  "published": "2026-04-22T13:54:38.389Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2bad24c17742fc88973d6aea526ce1353f5334a3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2e4fe6b15c2f390c023b20d728b1a3fe7ea4f973"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/726765b43deb2b4723869d673cc5fc6f7a3b2059"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7a6d6e4d8af044f94fa97e97af5ff2771e1fbebd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/84724ac4821a160d47b84289adf139023027bdbb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a41cc7c1668e44ff2c2d36f9a6353253ffc43e3c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ede95cfcab8064d9a08813fbd7ed42cea8843dcf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f20f17cffbe34fb330267e0f8084f5565f807444"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31524.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31524"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "HID: asus: avoid memory leak in asus_report_fixup()"
}