{
  "id": "CVE-2025-40093",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40093",
  "published_at": "2025-10-30T09:48:00.807Z",
  "title": "usb: gadget: f_ecm: 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_ecm: Refactor bind path to use __free()\n\nAfter an bind/unbind cycle, the ecm-\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= da741b8c56d612b5dd26ffa31341911a5fea23ee, \u003c d3745aaef19198d0c81637a7dd50ef53c4f879b7",
          "\u003e= da741b8c56d612b5dd26ffa31341911a5fea23ee, \u003c 070f341d86cf2c098d63e484a86c7c1d2696a868",
          "\u003e= da741b8c56d612b5dd26ffa31341911a5fea23ee, \u003c 15b9faf53ba8719700596e7ef78879ce200e8c2e",
          "\u003e= da741b8c56d612b5dd26ffa31341911a5fea23ee, \u003c 4630c68bade82f087eaaab22e9a361da2f18d139",
          "\u003e= da741b8c56d612b5dd26ffa31341911a5fea23ee, \u003c 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5"
        ],
        "fixed_in": [
          "d3745aaef19198d0c81637a7dd50ef53c4f879b7",
          "070f341d86cf2c098d63e484a86c7c1d2696a868",
          "15b9faf53ba8719700596e7ef78879ce200e8c2e",
          "4630c68bade82f087eaaab22e9a361da2f18d139",
          "42988380ac67c76bb9dff8f77d7ef3eefd50b7b5"
        ]
      },
      {
        "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 d3745aaef19198d0c81637a7dd50ef53c4f879b7 or 070f341d86cf2c098d63e484a86c7c1d2696a868 or 15b9faf53ba8719700596e7ef78879ce200e8c2e or 4630c68bade82f087eaaab22e9a361da2f18d139 or 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5 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": []
}
