CVE-2026-31745

Source
https://cve.org/CVERecord?id=CVE-2026-31745
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31745.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31745
Downstream
Published
2026-05-01T14:14:39.529Z
Modified
2026-07-08T08:00:04.835920772Z
Summary
reset: gpio: fix double free in reset_add_gpio_aux_device() error path
Details

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

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

When __auxiliarydeviceadd() fails, resetaddgpioauxdevice() calls auxiliarydeviceuninit(adev).

The device release callback resetgpioauxdevicerelease() frees adev, but the current error path then calls kfree(adev) again, causing a double free.

Keep kfree(adev) for the auxiliarydeviceinit() failure path, but avoid freeing adev after auxiliarydeviceuninit().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31745.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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
5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8
Fixed
1de465753220deb41569cf2add87bbb0673731db
Fixed
fbffb8c7c7bb4d38e9f65e0bee446685011de5d8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31745.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31745.json"