{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38555","id":"CVE-2025-38555","title":"usb: gadget : fix use-after-free in composite_dev_cleanup()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget : fix use-after-free in composite_dev_cleanup()\n\n1. In func configfs_composite_bind() -> composite_os_desc_req_prepare():\nif kmalloc fails, the pointer cdev->os_desc_req will be freed but not\nset to NULL. Then it will return a failure to the upper-level function.\n2. in func configfs_composite_bind() -> composite_dev_c","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget : fix use-after-free in composite_dev_cleanup()\n\n1. In func configfs_composite_bind() -> composite_os_desc_req_prepare():\nif kmalloc fails, the pointer cdev->os_desc_req will be freed but not\nset to NULL. Then it will return a failure to the upper-level function.\n2. in func configfs_composite_bind() -> composite_dev_cleanup():\nit will checks whether cdev->os_desc_req is NULL. If it is not NULL, it\nwill attempt to use it.This will lead to a use-after-free issue.\n\nBUG: KASAN: use-after-free in composite_dev_cleanup+0xf4/0x2c0\nRead of size 8 at addr 0000004827837a00 by task init/1\n\nCPU: 10 PID: 1 Comm: init Tainted: G           O      5.10.97-oh #1\n kasan_report+0x188/0x1cc\n __asan_load8+0xb4/0xbc\n composite_dev_cleanup+0xf4/0x2c0\n configfs_composite_bind+0x210/0x7ac\n udc_bind_to_driver+0xb4/0x1ec\n usb_gadget_probe_driver+0xec/0x21c\n gadget_dev_desc_UDC_store+0x264/0x27c","published":"2025-08-19T17:02:34.110Z","updated":"2026-10-28T02:31:10.506467709Z","reserved":"2025-04-16T04:51:24.025Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"dba96dfa5a0f685b959dd28a52ac8dab0b805204","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"2db29235e900a084a656dea7e0939b0abb7bb897","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"8afb22aa063f706f3343707cdfb8cda4d021dd33","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"e624bf26127645a2f7821e73fdf6dc64bad07835","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"aada327a9f8028c573636fa60c0abc80fb8135c9","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"5f06ee9f9a3665d43133f125c17e5258a13f3963","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"bd3c4ef60baf7f65c963f3e12d9d7b2b091e20ba","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"e1be1f380c82a69f80c68c96a7cfe8759fb30355","status":"affected","versionType":"git"},{"version":"37a3a533429ef9b3cc9f15a656c19623f0e88df7","lessThan":"151c0aa896c47a4459e07fee7d4843f44c1bb18e","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"5.4.297","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.241","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.190","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.148","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.102","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.42","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.10","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.1","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/dba96dfa5a0f685b959dd28a52ac8dab0b805204","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2db29235e900a084a656dea7e0939b0abb7bb897","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8afb22aa063f706f3343707cdfb8cda4d021dd33","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e624bf26127645a2f7821e73fdf6dc64bad07835","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aada327a9f8028c573636fa60c0abc80fb8135c9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5f06ee9f9a3665d43133f125c17e5258a13f3963","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bd3c4ef60baf7f65c963f3e12d9d7b2b091e20ba","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e1be1f380c82a69f80c68c96a7cfe8759fb30355","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/151c0aa896c47a4459e07fee7d4843f44c1bb18e","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38555.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38555","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00197,"epssPercentile":0.09495,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38555","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38555","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38555","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38555","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}