{"api_version":"1","generated_at":"2026-12-03T06:56:53+00:00","cve":"CVE-2026-142802","urls":{"html":"https://cve.report/CVE-2026-142802","api":"https://cve.report/api/cve/CVE-2026-142802.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142802","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142802"},"summary":{"title":"platform/x86/amd: hfi: Fix a use-after-free when unloading the driver","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd: hfi: Fix a use-after-free when unloading the driver\n\namd_hfi_probe() registers CPU hotplug callbacks with\ncpuhp_setup_state(CPUHP_AP_ONLINE_DYN, ...) and schedules the static\nsched_amd_hfi_itmt_work work item, but amd_hfi_remove() tears down\nneither.  The dynamically assigned hotplug state returned by\ncpuhp_setup_state() is discarded, so cpuhp_remove_state() can never be\ncalled, and the pending work is never cancelled.\n\nAfter the module is unloaded and its memory is freed, any subsequent CPU\nhotplug event or execution of the scheduled work dereferences the stale\ncallback and work function pointers, resulting in a use-after-free and\nkernel panic.\n\nStore the hotplug state returned by cpuhp_setup_state() and, on removal,\ncall cpuhp_remove_state() to unregister the callbacks and\ncancel_work_sync() to flush the scheduled work before the module memory\ngoes away.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:13","updated_at":"2026-12-03 04:18:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48","name":"https://git.kernel.org/stable/c/55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/02b63c0227a3694b89133e3f17342a4ed083a348","name":"https://git.kernel.org/stable/c/02b63c0227a3694b89133e3f17342a4ed083a348","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ff2c27583cf9f4e009e30ca27b04f69bbc9b9674","name":"https://git.kernel.org/stable/c/ff2c27583cf9f4e009e30ca27b04f69bbc9b9674","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142802","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142802","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bb20421c05fc0a0fd70a3f8af076319f7dec4cf1 ff2c27583cf9f4e009e30ca27b04f69bbc9b9674 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bb20421c05fc0a0fd70a3f8af076319f7dec4cf1 02b63c0227a3694b89133e3f17342a4ed083a348 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bb20421c05fc0a0fd70a3f8af076319f7dec4cf1 55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/platform/x86/amd/hfi/hfi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ff2c27583cf9f4e009e30ca27b04f69bbc9b9674","status":"affected","version":"bb20421c05fc0a0fd70a3f8af076319f7dec4cf1","versionType":"git"},{"lessThan":"02b63c0227a3694b89133e3f17342a4ed083a348","status":"affected","version":"bb20421c05fc0a0fd70a3f8af076319f7dec4cf1","versionType":"git"},{"lessThan":"55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48","status":"affected","version":"bb20421c05fc0a0fd70a3f8af076319f7dec4cf1","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/platform/x86/amd/hfi/hfi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd: hfi: Fix a use-after-free when unloading the driver\n\namd_hfi_probe() registers CPU hotplug callbacks with\ncpuhp_setup_state(CPUHP_AP_ONLINE_DYN, ...) and schedules the static\nsched_amd_hfi_itmt_work work item, but amd_hfi_remove() tears down\nneither.  The dynamically assigned hotplug state returned by\ncpuhp_setup_state() is discarded, so cpuhp_remove_state() can never be\ncalled, and the pending work is never cancelled.\n\nAfter the module is unloaded and its memory is freed, any subsequent CPU\nhotplug event or execution of the scheduled work dereferences the stale\ncallback and work function pointers, resulting in a use-after-free and\nkernel panic.\n\nStore the hotplug state returned by cpuhp_setup_state() and, on removal,\ncall cpuhp_remove_state() to unregister the callbacks and\ncancel_work_sync() to flush the scheduled work before the module memory\ngoes away."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:11:31.553Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ff2c27583cf9f4e009e30ca27b04f69bbc9b9674"},{"url":"https://git.kernel.org/stable/c/02b63c0227a3694b89133e3f17342a4ed083a348"},{"url":"https://git.kernel.org/stable/c/55d8406dfa2fa8ad8ac2f053c2a53a97d8b0ce48"}],"title":"platform/x86/amd: hfi: Fix a use-after-free when unloading the driver","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142802","datePublished":"2026-12-03T03:11:31.553Z","dateReserved":"2026-12-03T03:10:28.330Z","dateUpdated":"2026-12-03T03:11:31.553Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:13","lastModifiedDate":"2026-12-03 04:18:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142802","Ordinal":"1","Title":"platform/x86/amd: hfi: Fix a use-after-free when unloading the d","CVE":"CVE-2026-142802","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142802","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd: hfi: Fix a use-after-free when unloading the driver\n\namd_hfi_probe() registers CPU hotplug callbacks with\ncpuhp_setup_state(CPUHP_AP_ONLINE_DYN, ...) and schedules the static\nsched_amd_hfi_itmt_work work item, but amd_hfi_remove() tears down\nneither.  The dynamically assigned hotplug state returned by\ncpuhp_setup_state() is discarded, so cpuhp_remove_state() can never be\ncalled, and the pending work is never cancelled.\n\nAfter the module is unloaded and its memory is freed, any subsequent CPU\nhotplug event or execution of the scheduled work dereferences the stale\ncallback and work function pointers, resulting in a use-after-free and\nkernel panic.\n\nStore the hotplug state returned by cpuhp_setup_state() and, on removal,\ncall cpuhp_remove_state() to unregister the callbacks and\ncancel_work_sync() to flush the scheduled work before the module memory\ngoes away.","Type":"Description","Title":"platform/x86/amd: hfi: Fix a use-after-free when unloading the d"}]}}}