{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-26866","id":"CVE-2024-26866","title":"spi: lpspi: Avoid potential use-after-free in probe()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: lpspi: Avoid potential use-after-free in probe()\n\nfsl_lpspi_probe() is allocating/disposing memory manually with\nspi_alloc_host()/spi_alloc_target(), but uses\ndevm_spi_register_controller(). In case of error after the latter call the\nmemory will be explicitly freed in the probe function by\nspi_controller_put() call, but used","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: lpspi: Avoid potential use-after-free in probe()\n\nfsl_lpspi_probe() is allocating/disposing memory manually with\nspi_alloc_host()/spi_alloc_target(), but uses\ndevm_spi_register_controller(). In case of error after the latter call the\nmemory will be explicitly freed in the probe function by\nspi_controller_put() call, but used afterwards by \"devm\" management outside\nprobe() (spi_unregister_controller() <- devm_spi_unregister() below).\n\nUnable to handle kernel NULL pointer dereference at virtual address 0000000000000070\n...\nCall trace:\n kernfs_find_ns\n kernfs_find_and_get_ns\n sysfs_remove_group\n sysfs_remove_groups\n device_remove_attrs\n device_del\n spi_unregister_controller\n devm_spi_unregister\n release_nodes\n devres_release_all\n really_probe\n driver_probe_device\n __device_attach_driver\n bus_for_each_drv\n __device_attach\n device_initial_probe\n bus_probe_device\n deferred_probe_work_func\n process_one_work\n worker_thread\n kthread\n ret_from_fork","published":"2024-04-17T10:27:28.163Z","updated":"2026-11-01T02:30:52.315875458Z","reserved":"2024-02-19T14:20:24.184Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5314987de5e5f5e38436ef4a69328bc472bbd63e","lessThan":"57a9b7fe61031f30c90d20c898160c397f6abe9f","status":"affected","versionType":"git"},{"version":"5314987de5e5f5e38436ef4a69328bc472bbd63e","lessThan":"da83ed350e4604b976e94239b08d8e2e7eaee7ea","status":"affected","versionType":"git"},{"version":"5314987de5e5f5e38436ef4a69328bc472bbd63e","lessThan":"1543418e82789cc383cd36d41469983c64e3fc7f","status":"affected","versionType":"git"},{"version":"5314987de5e5f5e38436ef4a69328bc472bbd63e","lessThan":"996ce839606afd0fef91355627868022aa73eb68","status":"affected","versionType":"git"},{"version":"5314987de5e5f5e38436ef4a69328bc472bbd63e","lessThan":"2ae0ab0143fcc06190713ed81a6486ed0ad3c861","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.10","status":"affected"},{"version":"0","lessThan":"4.10","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.23","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.7.11","lessThanOrEqual":"6.7.*","status":"unaffected","versionType":"semver"},{"version":"6.8.2","lessThanOrEqual":"6.8.*","status":"unaffected","versionType":"semver"},{"version":"6.9","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/57a9b7fe61031f30c90d20c898160c397f6abe9f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/da83ed350e4604b976e94239b08d8e2e7eaee7ea","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/1543418e82789cc383cd36d41469983c64e3fc7f","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/996ce839606afd0fef91355627868022aa73eb68","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/2ae0ab0143fcc06190713ed81a6486ed0ad3c861","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26866.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26866","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00216,"epssPercentile":0.12248,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-26866","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26866","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-26866","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-26866","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}