{"id":"CVE-2026-98971","revision":"c1dec473d91b4d8ba552bf55ec6103e9","records":[{"revision":"c1dec473d91b4d8ba552bf55ec6103e9","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-98971","aliases":[],"title":"gpio: exar: initialize the ID before registering its cleanup","description":"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.","state":0,"publishedAt":"2026-10-23T12:19:44.536+00:00","modifiedAt":"2026-10-23T12:19:44.536+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpio/gpio-exar.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5300ebb695fa0672589ab191062392f686fca75d\",\n                            \"lessThan\": \"bf3d841ef12fcbec4458e2750956b738b043a226\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5300ebb695fa0672589ab191062392f686fca75d\",\n                            \"lessThan\": \"b78c114600ae3df90c083c72c290437b068577c8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5300ebb695fa0672589ab191062392f686fca75d\",\n                            \"lessThan\": \"01318927a9055136c207399eeb36ce07becac179\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5300ebb695fa0672589ab191062392f686fca75d\",\n                            \"lessThan\": \"f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5300ebb695fa0672589ab191062392f686fca75d\",\n                            \"lessThan\": \"4d69e74034b208588636ecc177e0dd43a7696af3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpio/gpio-exar.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.11\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.11\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.113\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.57\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.11\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/bf3d841ef12fcbec4458e2750956b738b043a226","https://git.kernel.org/stable/c/b78c114600ae3df90c083c72c290437b068577c8","https://git.kernel.org/stable/c/01318927a9055136c207399eeb36ce07becac179","https://git.kernel.org/stable/c/f7ec4dbd2a073dd53b6349be1c586fe8580dd6b2","https://git.kernel.org/stable/c/4d69e74034b208588636ecc177e0dd43a7696af3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98971","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98971","identifiers":["CVE-2026-98971"]},"retained":false,"historicalAffected":[]}],"coverage":[]}