{"id":"CVE-2026-99449","aliases":[],"title":"usb: gadget: fix refcount underflow in gadgetfs_bind() error path","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: fix refcount underflow in gadgetfs_bind() error path\n\ngadgetfs_bind() calls get_dev() only on the success path, but\ngadgetfs_unbind() called from the enomem error label unconditionally\ncalls put_dev().  When bind fails (e.g. ENOMEM), put_dev() fires\nwithout a matching get_dev(), leaving the refcount unbalanced.\n\nA subsequent close of the ep0 file descriptor calls dev_release() ->\nput_dev() which hits zero and frees the object; then gadgetfs_kill_sb()\ncalls put_dev(the_device) again on the already-freed pointer, triggering\na refcount underflow and use-after-free.\n\nFix by calling get_dev() at the start of gadgetfs_bind(), before any\nerror path that invokes gadgetfs_unbind(), so the reference is always\nbalanced regardless of whether bind succeeds or fails.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.0022,"percentile":0.13459},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"vendor","name":"Linux","range":">=0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"vendor","name":"Linux","range":">=0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <09e4c7127b4663317c54f37b29722843dc0d93aa","fixed":"09e4c7127b4663317c54f37b29722843dc0d93aa"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <260b0c0ab0b75b358b0b22988ea9a93b5c40c593","fixed":"260b0c0ab0b75b358b0b22988ea9a93b5c40c593"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <48373c3c210e7d797993953ae6d619dfc9e7df54","fixed":"48373c3c210e7d797993953ae6d619dfc9e7df54"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <5370f6139485ee3801a83ab32b4b881b97cead46","fixed":"5370f6139485ee3801a83ab32b4b881b97cead46"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <a28791bdb256abd0f338a9b32a95392907d1c987","fixed":"a28791bdb256abd0f338a9b32a95392907d1c987"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <adb693d0369cd7f08f9424588fdd1f613c22d43b","fixed":"adb693d0369cd7f08f9424588fdd1f613c22d43b"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <cb3b441f2698455a48e9a023d5f7f4e3fcb94c73","fixed":"cb3b441f2698455a48e9a023d5f7f4e3fcb94c73"},{"ecosystem":"vendor","name":"Linux","range":">=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, <e7e89759445e97ccb445758c6c8d5caed4eb42f9","fixed":"e7e89759445e97ccb445758c6c8d5caed4eb42f9"}],"references":[{"url":"https://git.kernel.org/stable/c/a28791bdb256abd0f338a9b32a95392907d1c987","type":"other"},{"url":"https://git.kernel.org/stable/c/e7e89759445e97ccb445758c6c8d5caed4eb42f9","type":"other"},{"url":"https://git.kernel.org/stable/c/adb693d0369cd7f08f9424588fdd1f613c22d43b","type":"other"},{"url":"https://git.kernel.org/stable/c/cb3b441f2698455a48e9a023d5f7f4e3fcb94c73","type":"other"},{"url":"https://git.kernel.org/stable/c/09e4c7127b4663317c54f37b29722843dc0d93aa","type":"other"},{"url":"https://git.kernel.org/stable/c/260b0c0ab0b75b358b0b22988ea9a93b5c40c593","type":"other"},{"url":"https://git.kernel.org/stable/c/48373c3c210e7d797993953ae6d619dfc9e7df54","type":"other"},{"url":"https://git.kernel.org/stable/c/5370f6139485ee3801a83ab32b4b881b97cead46","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.201Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99449","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.069Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:54.042Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99449","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.869Z"}],"firstSeenAt":"2026-11-19T15:00:33.869Z","publishedAt":"2026-11-19T14:41:39.468Z","modifiedAt":"2026-11-23T08:17:48.757Z"}