{"id":"CVE-2026-98971","aliases":["CVE-2026-98971"],"related":[],"kind":"vulnerability","state":"published","title":"gpio: exar: initialize the ID before registering its cleanup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: exar: initialize the ID before registering its cleanup\n\ndevm_add_action_or_reset() invokes the cleanup action immediately when\nregistering the action fails.  gpio_exar_probe() currently stores the\nallocated ID in exar_gpio only after registering the action, so that\nfailure makes exar_devm_ida_free() release ID 0.  If the allocated ID is\nnonzero, this leaks that ID and can free ID 0 belonging to another device.\n\nStore the ID before registering the cleanup action so both the immediate\nfailure path and normal device teardown release the correct allocation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: exar: initialize the ID before registering its cleanup\n\ndevm_add_action_or_reset() invokes the cleanup action immediately when\nregistering the action fails.  gpio_exar_probe() currently stores the\nallocated ID in exar_gpio only after registering the action, so that\nfailure makes exar_devm_ida_free() release ID 0.  If the allocated ID is\nnonzero, this leaks that ID and can free ID 0 belonging to another device.\n\nStore the ID before registering the cleanup action so both the immediate\nfailure path and normal device teardown release the correct allocation.","source":"cvelist"}],"published":"2026-10-23T12:19:44.536Z","modified":"2026-10-30T13:21:33.613Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"0250acba81654b2ee50bde324ad72b3f0c04d0bd","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"88b9c4bbf83d940ab672956e5af921215905dcb4","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"bf3d841ef12fcbec4458e2750956b738b043a226","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"b78c114600ae3df90c083c72c290437b068577c8","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"01318927a9055136c207399eeb36ce07becac179","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2","status":"affected"},{"type":"git","introduced":"5300ebb695fa0672589ab191062392f686fca75d","fixed":"4d69e74034b208588636ecc177e0dd43a7696af3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.11","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/0250acba81654b2ee50bde324ad72b3f0c04d0bd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88b9c4bbf83d940ab672956e5af921215905dcb4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98971","url":"https://www.cve.org/CVERecord?id=CVE-2026-98971","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:37.940Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98971","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98971","licence":"Public domain","modified":"2026-10-30T13:21:33.613Z"}],"updatedAt":"2026-11-25T22:59:46.927Z","epss":{"score":0.00206,"percentile":0.11303,"date":"2026-12-01T12:00:22.000Z"}}