{"id":"AZL-114893","summary":"CVE-2026-99449 affecting package kernel 6.6.161.1-1","details":"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() -\u003e\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.","modified":"2026-11-20T14:17:19.165660632Z","published":"2026-11-19T15:17:58Z","upstream":["CVE-2026-99449"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99449"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-114893.json"}}],"schema_version":"1.9.2"}