{"id":"CVE-2026-98971","summary":"gpio: exar: initialize the ID before registering its cleanup","details":"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.","modified":"2026-11-06T17:27:18.624976371Z","published":"2026-10-23T12:19:44.536Z","related":["SUSE-SU-2026:24550-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98971.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0250acba81654b2ee50bde324ad72b3f0c04d0bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/88b9c4bbf83d940ab672956e5af921215905dcb4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98971.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98971"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5300ebb695fa0672589ab191062392f686fca75d"},{"fixed":"0250acba81654b2ee50bde324ad72b3f0c04d0bd"},{"fixed":"88b9c4bbf83d940ab672956e5af921215905dcb4"},{"fixed":"bf3d841ef12fcbec4458e2750956b738b043a226"},{"fixed":"b78c114600ae3df90c083c72c290437b068577c8"},{"fixed":"01318927a9055136c207399eeb36ce07becac179"},{"fixed":"f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2"},{"fixed":"4d69e74034b208588636ecc177e0dd43a7696af3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98971.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.224"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.57"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98971.json"}}],"schema_version":"1.9.2"}