{
  "id": "CVE-2025-21661",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21661",
  "published_at": "2025-01-21T12:18:16.902Z",
  "title": "gpio: virtuser: fix missing lookup table cleanups",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: virtuser: fix missing lookup table cleanups\n\nWhen a virtuser device is created via configfs and the probe fails due\nto an incorrect lookup table, the table is not removed. This prevents\nsubsequent probe attempts from succeeding, even if the issue is\ncorrected, unless the device is released. Additionally, cleanup is also\nneeded in the less likely case of platform_device_register_full()\nfailure.\n\nBesides, a consistent memory leak in lookup_table-\u003edev_id was spotted\nusing kmemleak by toggling the live state between 0 and 1 with a correct\nlookup table.\n\nIntroduce gpio_virtuser_remove_lookup_table() as the counterpart to the\nexisting gpio_virtuser_make_lookup_table() and call it from all\nnecessary points to ensure proper cleanup.",
  "cwe": "CWE-401",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 5.5,
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 91581c4b3f29e2e22aeb1a62e842d529ca638b2d, \u003c d72d0126b1f6981f6ce8b4247305f359958c11b5",
          "\u003e= 91581c4b3f29e2e22aeb1a62e842d529ca638b2d, \u003c a619cba8c69c434258ff4101d463322cd63e1bdc"
        ],
        "fixed_in": [
          "d72d0126b1f6981f6ce8b4247305f359958c11b5",
          "a619cba8c69c434258ff4101d463322cd63e1bdc"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.10",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to d72d0126b1f6981f6ce8b4247305f359958c11b5 or a619cba8c69c434258ff4101d463322cd63e1bdc or later.",
      "Upgrade Linux to 0 or 6.12.10 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
