{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-39495","published":"2024-07-12T13:15:12.183000Z","last_modified":"2026-06-17T07:42:02.660000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_end_excluding":"5.4.279"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.221"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.162"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"6.1.95"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.2","version_end_excluding":"6.6.35"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.9.6"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00361,"percentile":0.22172,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2024-39495/","html_en":"/en/cve/CVE-2024-39495/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-39495","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-39495"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\ngreybus: Fix use-after-free bug in gb_interface_release due to race condition.\n\nIn gb_interface_create, &intf->mode_switch_completion is bound with\ngb_interface_mode_switch_work. Then it will be started by\ngb_interface_request_mode_switch. Here is the relevant code.\nif (!queue_work(system_long_wq, &intf->mode_switch_work)) {\n\t...\n}\n\nIf we call gb_interface_release to make cleanup, there may be an\nunfinished work. This function will call kfree to free the object\n\"intf\". However, if gb_interface_mode_switch_work is scheduled to\nrun after kfree, it may cause use-after-free error as\ngb_interface_mode_switch_work will use the object \"intf\".\nThe possible execution flow that may lead to the issue is as follows:\n\nCPU0                            CPU1\n\n                            |   gb_interface_create\n                            |   gb_interface_request_mode_switch\ngb_interface_release        |\nkfree(intf) (free)          |\n                            |   gb_interface_mode_switch_work\n                            |   mutex_lock(&intf->mutex) (use)\n\nFix it by canceling the work before kfree.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]},{"untrusted_vendor":"linux","untrusted_product":"linux_kernel","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/03ea2b129344152157418929f06726989efc0445","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/0b8fba38bdfb848fac52e71270b2aa3538c996ea","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/2b6bb0b4abfd79b8698ee161bb73c0936a2aaf83","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/5c9c5d7f26acc2c669c1dcf57d1bb43ee99220ce","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/74cd0a421896b2e07eafe7da4275302bfecef201","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/9a733d69a4a59c2d08620e6589d823c24be773dc","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/fb071f5c75d4b1c177824de74ee75f9dd34123b9","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}]}}