{"id":"CVE-2026-98971","published":"2026-10-23T12:19:44Z","modified":"2026-10-30T12:40:37Z","title":"gpio: exar: initialize the ID before registering its cleanup","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00206,"percentile":0.10738,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0250acba81654b2ee50bde324ad72b3f0c04d0bd","tags":[]},{"url":"https://git.kernel.org/stable/c/88b9c4bbf83d940ab672956e5af921215905dcb4","tags":[]},{"url":"https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226","tags":[]},{"url":"https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8","tags":[]},{"url":"https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179","tags":[]},{"url":"https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2","tags":[]},{"url":"https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.15}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5300ebb695fa0672589ab191062392f686fca75d, < 0250acba81654b2ee50bde324ad72b3f0c04d0bd",">= 5300ebb695fa0672589ab191062392f686fca75d, < 88b9c4bbf83d940ab672956e5af921215905dcb4",">= 5300ebb695fa0672589ab191062392f686fca75d, < bf3d841ef12fcbec4458e2750956b738b043a226",">= 5300ebb695fa0672589ab191062392f686fca75d, < b78c114600ae3df90c083c72c290437b068577c8",">= 5300ebb695fa0672589ab191062392f686fca75d, < 01318927a9055136c207399eeb36ce07becac179",">= 5300ebb695fa0672589ab191062392f686fca75d, < f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2",">= 5300ebb695fa0672589ab191062392f686fca75d, < 4d69e74034b208588636ecc177e0dd43a7696af3"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"euvd":{"id":"EUVD-2026-108765","exploited":false,"provenance":"source"}}