CVE-2026-31745

HIGH

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

Title source: cna
STIX 2.1

Description

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().

Scores

CVSS v3 7.8
EPSS 0.0001
EPSS Percentile 3.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-415
Status published
Products (8)
Linux/Linux < 6.19
Linux/Linux 5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8 - 1de465753220deb41569cf2add87bbb0673731db
Linux/Linux 5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8 - fbffb8c7c7bb4d38e9f65e0bee446685011de5d8
Linux/Linux 6.19
Linux/Linux 6.19.12 - 6.19.*
Linux/Linux 7.0
linux/linux_kernel 7.0 rc1 (7 CPE variants)
linux/linux_kernel 6.19 - 6.19.12
Published May 01, 2026
Tracked Since May 01, 2026