{"id":"CVE-2026-23068","published":"2026-02-04T16:07:49Z","modified":"2026-05-11T21:59:22Z","title":"spi: spi-sprd-adi: Fix double free in probe error path","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00217,"percentile":0.0701,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bddd3d10d039729b81cfb0804520c8832a701a0e","tags":[]},{"url":"https://git.kernel.org/stable/c/417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c","tags":[]},{"url":"https://git.kernel.org/stable/c/346775f2b4cf839177e8e86b94aa180a06dc15b0","tags":[]},{"url":"https://git.kernel.org/stable/c/f6d6b3f172df118db582fe5ec43ae223a55d99cf","tags":[]},{"url":"https://git.kernel.org/stable/c/383d4f5cffcc8df930d95b06518a9d25a6d74aac","tags":[]}],"priority":{"score":1.4,"factors":[{"name":"EPSS percentile","points":1.4}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ac1775012058e13ef1522938e27f5973d9e3f053, < bddd3d10d039729b81cfb0804520c8832a701a0e",">= ac1775012058e13ef1522938e27f5973d9e3f053, < 417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c",">= ac1775012058e13ef1522938e27f5973d9e3f053, < 346775f2b4cf839177e8e86b94aa180a06dc15b0",">= ac1775012058e13ef1522938e27f5973d9e3f053, < f6d6b3f172df118db582fe5ec43ae223a55d99cf",">= ac1775012058e13ef1522938e27f5973d9e3f053, < 383d4f5cffcc8df930d95b06518a9d25a6d74aac"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"euvd":{"id":"EUVD-2026-5476","exploited":false,"provenance":"source"}}