{"id":"CVE-2026-139738","state":"PUBLISHED","title":"wifi: ath12k: fix DMA unwind for ext MSDU descriptor retry","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: fix DMA unwind for ext MSDU descriptor retry\n\nath12k_wifi7_dp_tx() maps the original MSDU into ti.paddr and\nstores the address in skb_cb->paddr. When an extended MSDU descriptor\nis used, the function later maps the ext descriptor and overwrites\nti.paddr and ti.data_len with the ext-desc DMA address and length.\n\nIf TCL ring allocation then fails, the error path first unmaps the\next-desc DMA address from skb_cb->paddr_ext_desc. It then falls through\nto fail_unmap_dma, which uses ti.paddr/ti.data_len for the original\nMSDU unmap. At that point ti.paddr still refers to the ext-desc\nmapping, so the ext descriptor is unmapped twice and the original MSDU\nmapping is left mapped.\n\nFix the original MSDU unwind to use skb_cb->paddr and skb->len instead\nof ti.paddr/ti.data_len. The ti fields cannot be used after the ext\ndescriptor is mapped because they are intentionally reused for the\nbuffer submitted to TCL. Also clear skb_cb->paddr_ext_desc after the\next-desc unmap so a TCL ring retry cannot observe stale ext-desc DMA\nstate from the previous attempt.\n\nTested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1","publishedAt":"2026-11-30T13:37:31.081Z","updatedAt":"2026-11-30T13:37:31.081Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"37a068fc9dc4feb8d76e8896bb33883d06c11a6b","status":"affected","lessThan":"b065c82703ac354b44bcab7ee9de9697b576172e","versionType":"git"},{"version":"37a068fc9dc4feb8d76e8896bb33883d06c11a6b","status":"affected","lessThan":"4de5a8a0edddc453f1a4c93b6d9f09013a23b72e","versionType":"git"},{"version":"3fffbb8d33de8cb3f33454ff93efb5ee32b98ec8","status":"affected","versionType":"git"},{"version":"1111e612c5f8b6e1a21091bbfcd26776c4318554","status":"affected","versionType":"git"},{"version":"6.12.37","status":"affected","lessThan":"6.13","versionType":"semver"},{"version":"6.15.3","status":"affected","lessThan":"6.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/wifi7/dp_tx.c"]}],"references":["https://git.kernel.org/stable/c/b065c82703ac354b44bcab7ee9de9697b576172e","https://git.kernel.org/stable/c/4de5a8a0edddc453f1a4c93b6d9f09013a23b72e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:56:04.579Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139738.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139738","state":"PUBLISHED","datePublished":"2026-11-30T13:37:31.081Z","dateUpdated":"2026-11-30T13:37:31.081Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.950Z"},"containers":{"cna":{"title":"wifi: ath12k: fix DMA unwind for ext MSDU descriptor retry","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath12k: fix DMA unwind for ext MSDU descriptor retry\n\nath12k_wifi7_dp_tx() maps the original MSDU into ti.paddr and\nstores the address in skb_cb->paddr. When an extended MSDU descriptor\nis used, the function later maps the ext descriptor and overwrites\nti.paddr and ti.data_len with the ext-desc DMA address and length.\n\nIf TCL ring allocation then fails, the error path first unmaps the\next-desc DMA address from skb_cb->paddr_ext_desc. It then falls through\nto fail_unmap_dma, which uses ti.paddr/ti.data_len for the original\nMSDU unmap. At that point ti.paddr still refers to the ext-desc\nmapping, so the ext descriptor is unmapped twice and the original MSDU\nmapping is left mapped.\n\nFix the original MSDU unwind to use skb_cb->paddr and skb->len instead\nof ti.paddr/ti.data_len. The ti fields cannot be used after the ext\ndescriptor is mapped because they are intentionally reused for the\nbuffer submitted to TCL. Also clear skb_cb->paddr_ext_desc after the\next-desc unmap so a TCL ring retry cannot observe stale ext-desc DMA\nstate from the previous attempt.\n\nTested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"37a068fc9dc4feb8d76e8896bb33883d06c11a6b","status":"affected","lessThan":"b065c82703ac354b44bcab7ee9de9697b576172e","versionType":"git"},{"version":"37a068fc9dc4feb8d76e8896bb33883d06c11a6b","status":"affected","lessThan":"4de5a8a0edddc453f1a4c93b6d9f09013a23b72e","versionType":"git"},{"version":"3fffbb8d33de8cb3f33454ff93efb5ee32b98ec8","status":"affected","versionType":"git"},{"version":"1111e612c5f8b6e1a21091bbfcd26776c4318554","status":"affected","versionType":"git"},{"version":"6.12.37","status":"affected","lessThan":"6.13","versionType":"semver"},{"version":"6.15.3","status":"affected","lessThan":"6.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/wifi7/dp_tx.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b065c82703ac354b44bcab7ee9de9697b576172e"},{"url":"https://git.kernel.org/stable/c/4de5a8a0edddc453f1a4c93b6d9f09013a23b72e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:31.081Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.37"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}