{"id":"CVE-2026-31745","aliases":["CVE-2026-31745"],"related":[],"kind":"vulnerability","state":"published","title":"reset: gpio: fix double free in reset_add_gpio_aux_device() error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nreset: gpio: fix double free in reset_add_gpio_aux_device() error path\n\nWhen __auxiliary_device_add() fails, reset_add_gpio_aux_device()\ncalls auxiliary_device_uninit(adev).\n\nThe device release callback reset_gpio_aux_device_release() frees\nadev, but the current error path then calls kfree(adev) again,\ncausing a double free.\n\nKeep kfree(adev) for the auxiliary_device_init() failure path, but\navoid freeing adev after auxiliary_device_uninit().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nreset: gpio: fix double free in reset_add_gpio_aux_device() error path\n\nWhen __auxiliary_device_add() fails, reset_add_gpio_aux_device()\ncalls auxiliary_device_uninit(adev).\n\nThe device release callback reset_gpio_aux_device_release() frees\nadev, but the current error path then calls kfree(adev) again,\ncausing a double free.\n\nKeep kfree(adev) for the auxiliary_device_init() failure path, but\navoid freeing adev after auxiliary_device_uninit().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nreset: gpio: corregir doble liberación en la ruta de error de reset_add_gpio_aux_device()\n\nCuando __auxiliary_device_add() falla, reset_add_gpio_aux_device() llama a auxiliary_device_uninit(adev).\n\nLa función de devolución de llamada de liberación del dispositivo reset_gpio_aux_device_release() libera adev, pero la ruta de error actual luego llama a kfree(adev) de nuevo, causando una doble liberación.\n\nMantener kfree(adev) para la ruta de fallo de auxiliary_device_init(), pero evitar liberar adev después de auxiliary_device_uninit().","source":"nvd"}],"published":"2026-05-01T14:14:39.529Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8","fixed":"1de465753220deb41569cf2add87bbb0673731db","status":"affected"},{"type":"git","introduced":"5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8","fixed":"fbffb8c7c7bb4d38e9f65e0bee446685011de5d8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1de465753220deb41569cf2add87bbb0673731db","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbffb8c7c7bb4d38e9f65e0bee446685011de5d8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31745","url":"https://www.cve.org/CVERecord?id=CVE-2026-31745","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:56.434Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31745","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31745","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.363Z","epss":{"score":0.00125,"percentile":0.02396,"date":"2026-12-01T12:00:22.000Z"}}