{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e6ad399596bd234be4722022146e33e15c7e424d"
            },
            {
              "fixed": "579c4c9857acdc8380fa99803f355f878bd766cb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0b91b4e4dae63cd43871fc2012370b86ee588f91"
            },
            {
              "fixed": "d84c21aabaab517b9aaf9bc1d785922cb9db2f31"
            },
            {
              "fixed": "7edfe4346b052b708645d0acc0f186425766b785"
            },
            {
              "fixed": "79e5dcc95d9abed6f8203cfd529f4ec71f0e505d"
            },
            {
              "fixed": "136f605e246b4bfe7ac2259471d1ff814aed0084"
            },
            {
              "fixed": "fa95b0146358b49f9858139b67314591fd5871b0"
            },
            {
              "fixed": "91e8c6e601bdc1ccdf886479b6513c01c7e51c2c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "c394bd1bc8537e61593b6b6799e01495c7cf9008"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.15.17"
            },
            {
              "fixed": "5.15.203"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5.16.3"
            },
            {
              "fixed": "5.17"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.15.203"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.168"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.17.0"
            },
            {
              "fixed": "6.6.131"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.12.80"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.18.21"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.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-31522.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: magicmouse: avoid memory leak in magicmouse_report_fixup()\n\nThe magicmouse_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.",
  "id": "CVE-2026-31522",
  "modified": "2026-07-08T05:39:31.001780590Z",
  "published": "2026-04-22T13:54:36.885Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/136f605e246b4bfe7ac2259471d1ff814aed0084"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/579c4c9857acdc8380fa99803f355f878bd766cb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/79e5dcc95d9abed6f8203cfd529f4ec71f0e505d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7edfe4346b052b708645d0acc0f186425766b785"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/91e8c6e601bdc1ccdf886479b6513c01c7e51c2c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d84c21aabaab517b9aaf9bc1d785922cb9db2f31"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fa95b0146358b49f9858139b67314591fd5871b0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31522.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31522"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "HID: magicmouse: avoid memory leak in magicmouse_report_fixup()"
}