{"id":"CVE-2025-40095","summary":"usb: gadget: f_rndis: Refactor bind path to use __free()","details":"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.","modified":"2026-03-20T12:43:10.337741Z","published":"2025-10-30T09:48:03.276Z","related":["MGASA-2025-0309","MGASA-2025-0310","openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40095.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08228941436047bdcd35a612c1aec0912a29d8cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/380353c3a92be7d928e6f973bd065c5b79755ac3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5f65c8ad8c7292ed7e3716343fcd590a51818cc3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8366263b7e5b663d7fb489d3a9ba1e2600049a6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40095.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40095"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"45fe3b8e5342cd1ce307099459c74011d8e01986"},{"fixed":"ef81226bb1f8b6e761cd0b53d2696e9c1bc955d1"},{"fixed":"5f65c8ad8c7292ed7e3716343fcd590a51818cc3"},{"fixed":"380353c3a92be7d928e6f973bd065c5b79755ac3"},{"fixed":"a8366263b7e5b663d7fb489d3a9ba1e2600049a6"},{"fixed":"08228941436047bdcd35a612c1aec0912a29d8cd"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40095.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.27"},{"fixed":"6.1.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40095.json"}}],"schema_version":"1.7.5"}