{"id":"CVE-2025-22128","state":"PUBLISHED","title":"wifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path\n\nIf a shared IRQ is used by the driver due to platform limitation, then the\nIRQ affinity hint is set right after the allocation of IRQ vectors in\nath12k_pci_msi_alloc(). This does no harm unless one of the functions\nrequesting the IRQ fails and attempt to free the IRQ.\n\nThis may end up with a warning from the IRQ core that is expecting the\naffinity hint to be cleared before freeing the IRQ:\n\nkernel/irq/manage.c:\n\n\t/* make sure affinity_hint is cleaned up */\n\tif (WARN_ON_ONCE(desc->affinity_hint))\n\t\tdesc->affinity_hint = NULL;\n\nSo to fix this issue, clear the IRQ affinity hint before calling\nath12k_pci_free_irq() in the error path. The affinity will be cleared once\nagain further down the error path due to code organization, but that does\nno harm.","publishedAt":"2025-04-16T14:13:10.692Z","updatedAt":"2026-05-11T21:13:30.632Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"a69a594794fcad96d4cfce12aab6c5014a12b4c8","versionType":"git"},{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"35b33ba76765ce9e72949d957f3cf1feafd2955c","versionType":"git"},{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"b43b1e2c52db77c872bd60d30cdcc72c47df70c7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/pci.c"]}],"references":["https://git.kernel.org/stable/c/a69a594794fcad96d4cfce12aab6c5014a12b4c8","https://git.kernel.org/stable/c/35b33ba76765ce9e72949d957f3cf1feafd2955c","https://git.kernel.org/stable/c/b43b1e2c52db77c872bd60d30cdcc72c47df70c7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22128.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22128","state":"PUBLISHED","datePublished":"2025-04-16T14:13:10.692Z","dateUpdated":"2026-05-11T21:13:30.632Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.824Z"},"containers":{"cna":{"title":"wifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: Clear affinity hint before calling ath12k_pci_free_irq() in error path\n\nIf a shared IRQ is used by the driver due to platform limitation, then the\nIRQ affinity hint is set right after the allocation of IRQ vectors in\nath12k_pci_msi_alloc(). This does no harm unless one of the functions\nrequesting the IRQ fails and attempt to free the IRQ.\n\nThis may end up with a warning from the IRQ core that is expecting the\naffinity hint to be cleared before freeing the IRQ:\n\nkernel/irq/manage.c:\n\n\t/* make sure affinity_hint is cleaned up */\n\tif (WARN_ON_ONCE(desc->affinity_hint))\n\t\tdesc->affinity_hint = NULL;\n\nSo to fix this issue, clear the IRQ affinity hint before calling\nath12k_pci_free_irq() in the error path. The affinity will be cleared once\nagain further down the error path due to code organization, but that does\nno harm."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"a69a594794fcad96d4cfce12aab6c5014a12b4c8","versionType":"git"},{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"35b33ba76765ce9e72949d957f3cf1feafd2955c","versionType":"git"},{"version":"a3012f206d07fa62b5c2e384cbc3a81a4dbba3c9","status":"affected","lessThan":"b43b1e2c52db77c872bd60d30cdcc72c47df70c7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.35","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a69a594794fcad96d4cfce12aab6c5014a12b4c8"},{"url":"https://git.kernel.org/stable/c/35b33ba76765ce9e72949d957f3cf1feafd2955c"},{"url":"https://git.kernel.org/stable/c/b43b1e2c52db77c872bd60d30cdcc72c47df70c7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:13:30.632Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.14.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}