{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-26807","published":"2024-04-04T09:15:09.380000Z","last_modified":"2026-08-04T11:17:07.950000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-787"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.4","version_end_excluding":"6.6.21"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.7.9"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.19.283:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.19.283"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.4.243:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.4.243"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.10.180:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.10.180"},{"criteria":"cpe:2.3:o:linux:linux_kernel:5.15.111:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"5.15.111"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.1.28:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.1.28"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.2.15:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.2.15"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.3.2:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.3.2"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.8"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00326,"percentile":0.1811,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2024-26807/","html_en":"/en/cve/CVE-2024-26807/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-26807","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-26807"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nBoth cadence-quadspi ->runtime_suspend() and ->runtime_resume()\nimplementations start with:\n\n\tstruct cqspi_st *cqspi = dev_get_drvdata(dev);\n\tstruct spi_controller *host = dev_get_drvdata(dev);\n\nThis obviously cannot be correct, unless \"struct cqspi_st\" is the\nfirst member of \" struct spi_controller\", or the other way around, but\nit is not the case. \"struct spi_controller\" is allocated by\ndevm_spi_alloc_host(), which allocates an extra amount of memory for\nprivate data, used to store \"struct cqspi_st\".\n\nThe ->probe() function of the cadence-quadspi driver then sets the\ndevice drvdata to store the address of the \"struct cqspi_st\"\nstructure. Therefore:\n\n\tstruct cqspi_st *cqspi = dev_get_drvdata(dev);\n\nis correct, but:\n\n\tstruct spi_controller *host = dev_get_drvdata(dev);\n\nis not, as it makes \"host\" point not to a \"struct spi_controller\" but\nto the same \"struct cqspi_st\" structure as above.\n\nThis obviously leads to bad things (memory corruption, kernel crashes)\ndirectly during ->probe(), as ->probe() enables the device using PM\nruntime, leading the ->runtime_resume() hook being called, which in\nturns calls spi_controller_resume() with the wrong pointer.\n\nThis has at least been reported [0] to cause a kernel crash, but the\nexact behavior will depend on the memory contents.\n\n[0] https://lore.kernel.org/all/20240226121803.5a7r5wkpbbowcxgx@dhruva/\n\nThis issue potentially affects all platforms that are currently using\nthe cadence-quadspi driver.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/03f1573c9587029730ca68503f5062105b122f61","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/2c914aac9522f6e93822c18dff233d3e92399c81","tags":[]},{"url":"https://git.kernel.org/stable/c/32ce3bb57b6b402de2aec1012511e7ac4e7449dc","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html","tags":[]}]}}