{"id":"CVE-2026-80563","aliases":["CVE-2026-80563"],"related":[],"kind":"vulnerability","state":"published","title":"gpio: sloppy-logic-analyzer: fix use-after-free via debugfs trigger on unbind","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: sloppy-logic-analyzer: fix use-after-free via debugfs trigger on unbind\n\nThe \"trigger\" debugfs file has a hand-rolled ->write handler\n(trigger_write()) that dereferences the per-device gpio_la_poll_priv. The\nfile is created with debugfs_create_file_unsafe(), and the handler never\ntakes a debugfs reference. Nothing keeps the object alive while the\nhandler runs.\n\npriv is allocated with devm_kzalloc(). devres frees it when the platform\ndevice is unbound. debugfs_create_file_unsafe() installs no full_proxy\nwrapper, so debugfs_remove_recursive() in gpio_la_poll_remove() does not\nwait for an in-flight trigger_write(). The blob_lock taken there does not\nhelp, because trigger_write() never takes it. A write that races an unbind\ntherefore writes into freed memory:\n\n  trigger_write()                  gpio_la_poll_remove()\n    priv = m->private\n    buf = memdup_user()  [may sleep]\n                                     mutex_lock(&priv->blob_lock)\n                                     debugfs_remove_recursive()  [no wait]\n                                     mutex_unlock(&priv->blob_lock)\n                                   (remove returns; devres frees priv)\n    priv->trig_data = buf   <-- use-after-free write\n    priv->trig_len  = count\n\nThe race is reachable by root via\n/sys/bus/platform/drivers/gpio-sloppy-logic-analyzer/unbind.\n\nCreate \"trigger\" with debugfs_create_file() instead. Its full_proxy\nwrapper makes debugfs_remove_recursive() drain any in-flight ->write\nbefore it returns.\n\nThe use-after-free is confirmed under KASAN with a minimal reproducer of\nthe same debugfs_create_file_unsafe() plus devm_kzalloc() pattern\n(available on request); it produces a slab-use-after-free write in the\nhandler.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: sloppy-logic-analyzer: fix use-after-free via debugfs trigger on unbind\n\nThe \"trigger\" debugfs file has a hand-rolled ->write handler\n(trigger_write()) that dereferences the per-device gpio_la_poll_priv. The\nfile is created with debugfs_create_file_unsafe(), and the handler never\ntakes a debugfs reference. Nothing keeps the object alive while the\nhandler runs.\n\npriv is allocated with devm_kzalloc(). devres frees it when the platform\ndevice is unbound. debugfs_create_file_unsafe() installs no full_proxy\nwrapper, so debugfs_remove_recursive() in gpio_la_poll_remove() does not\nwait for an in-flight trigger_write(). The blob_lock taken there does not\nhelp, because trigger_write() never takes it. A write that races an unbind\ntherefore writes into freed memory:\n\n  trigger_write()                  gpio_la_poll_remove()\n    priv = m->private\n    buf = memdup_user()  [may sleep]\n                                     mutex_lock(&priv->blob_lock)\n                                     debugfs_remove_recursive()  [no wait]\n                                     mutex_unlock(&priv->blob_lock)\n                                   (remove returns; devres frees priv)\n    priv->trig_data = buf   <-- use-after-free write\n    priv->trig_len  = count\n\nThe race is reachable by root via\n/sys/bus/platform/drivers/gpio-sloppy-logic-analyzer/unbind.\n\nCreate \"trigger\" with debugfs_create_file() instead. Its full_proxy\nwrapper makes debugfs_remove_recursive() drain any in-flight ->write\nbefore it returns.\n\nThe use-after-free is confirmed under KASAN with a minimal reproducer of\nthe same debugfs_create_file_unsafe() plus devm_kzalloc() pattern\n(available on request); it produces a slab-use-after-free write in the\nhandler.","source":"cvelist"}],"published":"2026-08-26T14:37:27.759Z","modified":"2026-08-26T15:17:11.310Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7828b7bbbf2074dd7dd14d87f50bc5ce9036d692","fixed":"49a1ebb1ef2c8ada300c174b65273810abb4e326","status":"affected"},{"type":"git","introduced":"7828b7bbbf2074dd7dd14d87f50bc5ce9036d692","fixed":"23e9f32c0c7d2043e39655cff5ee3ddf29a43f80","status":"affected"},{"type":"git","introduced":"7828b7bbbf2074dd7dd14d87f50bc5ce9036d692","fixed":"24bef4918f6ab806260476e2f93d8f791fd17449","status":"affected"},{"type":"git","introduced":"7828b7bbbf2074dd7dd14d87f50bc5ce9036d692","fixed":"44f3468a0aef1aabdad551898ab7cfa2a9d20e99","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.105","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.46","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.10","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/49a1ebb1ef2c8ada300c174b65273810abb4e326","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23e9f32c0c7d2043e39655cff5ee3ddf29a43f80","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24bef4918f6ab806260476e2f93d8f791fd17449","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44f3468a0aef1aabdad551898ab7cfa2a9d20e99","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80563","url":"https://www.cve.org/CVERecord?id=CVE-2026-80563","licence":"CVE Terms of Use","modified":"2026-08-26T14:37:27.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80563","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80563","licence":"Public domain","modified":"2026-08-26T15:17:11.310Z"}],"updatedAt":"2026-11-25T22:59:35.398Z","epss":{"score":0.00168,"percentile":0.06372,"date":"2026-12-01T12:00:22.000Z"}}