{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6fda593f3082ef1aa783ac13e89f673fd69a2cb6"
            },
            {
              "fixed": "9b26723e058faaf11b532fb4aa16d6849d581790"
            },
            {
              "fixed": "41f857033c44442a27f591fda8d986e7c9e42872"
            },
            {
              "fixed": "02743c4091ccfb246f5cdbbe3f44b152d5d12933"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48661.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: Fix potential resource leakage when register a chip\n\nIf creation of software node fails, the locally allocated string\narray is left unfreed. Free it on error path.",
  "id": "CVE-2022-48661",
  "modified": "2026-04-01T23:07:45.087996452Z",
  "published": "2024-04-28T13:01:26.940Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48661.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-48661"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "gpio: mockup: Fix potential resource leakage when register a chip"
}