Shellfeed logo Shellfeed

CVE-2026-98971 · UNKNOWN

Summary: gpio: exar: initialize the ID before registering its cleanup

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 10.8).

Details

In the Linux kernel, the following vulnerability has been resolved:

gpio: exar: initialize the ID before registering its cleanup

devm_add_action_or_reset() invokes the cleanup action immediately when
registering the action fails. gpio_exar_probe() currently stores the
allocated ID in exar_gpio only after registering the action, so that
failure makes exar_devm_ida_free() release ID 0. If the allocated ID is
nonzero, this leaks that ID and can free ID 0 belonging to another device.

Store the ID before registering the cleanup action so both the immediate
failure path and normal device teardown release the correct allocation.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [5300ebb695fa0672589ab191062392f686fca75d – 0250acba81654b2ee50bde324ad72b3f0c04d0bd]
  • Linux Kernel [5.11.0 – 5.15.224] [5.16.0 – 6.1.191] [6.2.0 – 6.6.160] [6.7.0 – 6.12.113] [6.13.0 – 6.18.57] [6.19.0 – 7.2.11]

References