{
  "id": "CVE-2025-40095",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40095",
  "published_at": "2025-10-30T09:48:03.276Z",
  "title": "usb: gadget: f_rndis: Refactor bind path to use __free()",
  "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\nusb: gadget: f_rndis: Refactor bind path to use __free()\n\nAfter an bind/unbind cycle, the rndis-\u003enotify_req is left stale. If a\nsubsequent bind fails, the unified error label attempts to free this\nstale request, leading to a NULL pointer dereference when accessing\nep-\u003eops-\u003efree_request.\n\nRefactor the error handling in the bind path to use the __free()\nautomatic cleanup mechanism.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 45fe3b8e5342cd1ce307099459c74011d8e01986, \u003c ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1",
          "\u003e= 45fe3b8e5342cd1ce307099459c74011d8e01986, \u003c 5f65c8ad8c7292ed7e3716343fcd590a51818cc3",
          "\u003e= 45fe3b8e5342cd1ce307099459c74011d8e01986, \u003c 380353c3a92be7d928e6f973bd065c5b79755ac3",
          "\u003e= 45fe3b8e5342cd1ce307099459c74011d8e01986, \u003c a8366263b7e5b663d7fb489d3a9ba1e2600049a6",
          "\u003e= 45fe3b8e5342cd1ce307099459c74011d8e01986, \u003c 08228941436047bdcd35a612c1aec0912a29d8cd"
        ],
        "fixed_in": [
          "ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1",
          "5f65c8ad8c7292ed7e3716343fcd590a51818cc3",
          "380353c3a92be7d928e6f973bd065c5b79755ac3",
          "a8366263b7e5b663d7fb489d3a9ba1e2600049a6",
          "08228941436047bdcd35a612c1aec0912a29d8cd"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.27"
        ],
        "fixed_in": [
          "0",
          "6.1.158",
          "6.6.114",
          "6.12.55",
          "6.17.5",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1 or 5f65c8ad8c7292ed7e3716343fcd590a51818cc3 or 380353c3a92be7d928e6f973bd065c5b79755ac3 or a8366263b7e5b663d7fb489d3a9ba1e2600049a6 or 08228941436047bdcd35a612c1aec0912a29d8cd or later.",
      "Upgrade Linux to 0 or 6.1.158 or 6.6.114 or 6.12.55 or 6.17.5 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
