{"id":"CVE-2025-40093","published":"2025-10-30T09:48:00Z","modified":"2026-08-05T12:07:44Z","title":"usb: gadget: f_ecm: Refactor bind path to use __free()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->notify_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->ops->free_request.\n\nRefactor the error handling in the bind path to use the __free()\nautomatic cleanup mechanism.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00156,"percentile":0.04867,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d3745aaef19198d0c81637a7dd50ef53c4f879b7","tags":[]},{"url":"https://git.kernel.org/stable/c/070f341d86cf2c098d63e484a86c7c1d2696a868","tags":[]},{"url":"https://git.kernel.org/stable/c/15b9faf53ba8719700596e7ef78879ce200e8c2e","tags":[]},{"url":"https://git.kernel.org/stable/c/4630c68bade82f087eaaab22e9a361da2f18d139","tags":[]},{"url":"https://git.kernel.org/stable/c/42988380ac67c76bb9dff8f77d7ef3eefd50b7b5","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.97},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= da741b8c56d612b5dd26ffa31341911a5fea23ee, < d3745aaef19198d0c81637a7dd50ef53c4f879b7",">= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 070f341d86cf2c098d63e484a86c7c1d2696a868",">= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 15b9faf53ba8719700596e7ef78879ce200e8c2e",">= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 4630c68bade82f087eaaab22e9a361da2f18d139",">= da741b8c56d612b5dd26ffa31341911a5fea23ee, < 42988380ac67c76bb9dff8f77d7ef3eefd50b7b5"]},{"vendor":"Linux","product":"Linux","versions":["2.6.27"]}],"euvd":{"id":"EUVD-2025-36985","exploited":false,"provenance":"source"}}