{"id":"CVE-2026-23068","aliases":["CVE-2026-23068"],"related":[],"kind":"vulnerability","state":"published","title":"spi: spi-sprd-adi: Fix double free in probe error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-sprd-adi: Fix double free in probe error path\n\nThe driver currently uses spi_alloc_host() to allocate the controller\nbut registers it using devm_spi_register_controller().\n\nIf devm_register_restart_handler() fails, the code jumps to the\nput_ctlr label and calls spi_controller_put(). However, since the\ncontroller was registered via a devm function, the device core will\nautomatically call spi_controller_put() again when the probe fails.\nThis results in a double-free of the spi_controller structure.\n\nFix this by switching to devm_spi_alloc_host() and removing the\nmanual spi_controller_put() call.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-sprd-adi: Fix double free in probe error path\n\nThe driver currently uses spi_alloc_host() to allocate the controller\nbut registers it using devm_spi_register_controller().\n\nIf devm_register_restart_handler() fails, the code jumps to the\nput_ctlr label and calls spi_controller_put(). However, since the\ncontroller was registered via a devm function, the device core will\nautomatically call spi_controller_put() again when the probe fails.\nThis results in a double-free of the spi_controller structure.\n\nFix this by switching to devm_spi_alloc_host() and removing the\nmanual spi_controller_put() call.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: spi-sprd-adi: Corregir doble liberación en la ruta de error de sondeo\n\nEl controlador actualmente usa spi_alloc_host() para asignar el controlador pero lo registra usando devm_spi_register_controller().\n\nSi devm_register_restart_handler() falla, el código salta a la etiqueta put_ctlr y llama a spi_controller_put(). Sin embargo, dado que el controlador fue registrado a través de una función devm, el núcleo del dispositivo llamará automáticamente a spi_controller_put() de nuevo cuando el sondeo falle. Esto resulta en una doble liberación de la estructura spi_controller.\n\nCorregir esto cambiando a devm_spi_alloc_host() y eliminando la llamada manual a spi_controller_put().","source":"nvd"}],"published":"2026-02-04T16:07:49.119Z","modified":"2026-06-17T10:20:48.377Z","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":"ac1775012058e13ef1522938e27f5973d9e3f053","fixed":"bddd3d10d039729b81cfb0804520c8832a701a0e","status":"affected"},{"type":"git","introduced":"ac1775012058e13ef1522938e27f5973d9e3f053","fixed":"417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c","status":"affected"},{"type":"git","introduced":"ac1775012058e13ef1522938e27f5973d9e3f053","fixed":"346775f2b4cf839177e8e86b94aa180a06dc15b0","status":"affected"},{"type":"git","introduced":"ac1775012058e13ef1522938e27f5973d9e3f053","fixed":"f6d6b3f172df118db582fe5ec43ae223a55d99cf","status":"affected"},{"type":"git","introduced":"ac1775012058e13ef1522938e27f5973d9e3f053","fixed":"383d4f5cffcc8df930d95b06518a9d25a6d74aac","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.122","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.68","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.8","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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":"4.17","fixed":"6.1.162"},{"status":"affected","introduced":"6.2","fixed":"6.6.122"},{"status":"affected","introduced":"6.7","fixed":"6.12.68"},{"status":"affected","introduced":"6.13","fixed":"6.18.8"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bddd3d10d039729b81cfb0804520c8832a701a0e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/346775f2b4cf839177e8e86b94aa180a06dc15b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6d6b3f172df118db582fe5ec43ae223a55d99cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/383d4f5cffcc8df930d95b06518a9d25a6d74aac","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23068","url":"https://www.cve.org/CVERecord?id=CVE-2026-23068","licence":"CVE Terms of Use","modified":"2026-05-11T21:59:22.846Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23068","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23068","licence":"Public domain","modified":"2026-06-17T10:20:48.377Z"}],"updatedAt":"2026-11-25T22:59:13.461Z","epss":{"score":0.00155,"percentile":0.04817,"date":"2026-12-01T12:00:22.000Z"}}