Linux
reset: gpio: fix double free in reset_add_gpio_aux_device() error path
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8, < 1de465753220deb41569cf2add87bbb0673731db
- >= 5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8, < fbffb8c7c7bb4d38e9f65e0bee446685011de5d8
Fixed in 1de465753220deb41569cf2add87bbb0673731db, fbffb8c7c7bb4d38e9f65e0bee446685011de5d8
- 6.19
Fixed in 0, 6.19.12, 7.0
Mitigation
Upgrade Linux to 1de465753220deb41569cf2add87bbb0673731db or fbffb8c7c7bb4d38e9f65e0bee446685011de5d8 or later.
Upgrade Linux to 0 or 6.19.12 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.