CVE-2026-31745

reset: gpio: fix double free in reset_add_gpio_aux_device() error path

published May 1, 2026

CVSS
—
EPSS
0%
Percentile
5.4
In the wild
Unconfirmed
What it is

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

reset: gpio: fix double free in reset_add_gpio_aux_device() error path

When __auxiliary_device_add() fails, reset_add_gpio_aux_device()

calls auxiliary_device_uninit(adev).

The device release callback reset_gpio_aux_device_release() frees

adev, but the current error path then calls kfree(adev) again,

causing a double free.

Keep kfree(adev) for the auxiliary_device_init() failure path, but

avoid freeing adev after auxiliary_device_uninit().

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00165 · 5.4th percentile
Published
2026-05-01T14:14Z
EPSS history
Timeline
  • 01 MAY 14:14Z
    reset: gpio: fix double free in reset_add_gpio_aux_device() error path
    cvelistv5