{"id":"CVE-2026-139243","state":"PUBLISHED","title":"net: axienet: release every RX buffer in axienet_dma_bd_release()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: axienet: release every RX buffer in axienet_dma_bd_release()\n\nThe RX walk in axienet_dma_bd_release() stops at the first descriptor\nwithout an skb, assuming that such a slot and all after it were never\nfilled.  That holds on the axienet_dma_bd_init() error path, but not once\nthe ring has been running: when axienet_rx_poll() fails to allocate or\nmap a replacement buffer it leaves the slot it emptied with a NULL skb,\nin the middle of a populated ring, until a later poll refills it.\nClosing the interface before then leaks the skb and the streaming DMA\nmapping of every descriptor after that slot, which can be most of the\nring, and is most likely under memory pressure.\n\nThe walk also frees each skb before unmapping it.  With swiotlb, the\nDMA_FROM_DEVICE unmap copies the bounce buffer back into the skb data\nthat was just freed, and on non-coherent platforms it invalidates cache\nlines that may already belong to a new owner.\n\nSkip empty slots instead of stopping at the first one.  An emptied slot\nstill has a non-zero cntrl but its buffer is already unmapped, so the\nskip has to cover the unmap too, which it does by coming before it.\nThen unmap before freeing, as axienet_rx_poll() does.\n\nThis was reported by the Sashiko AI review bot.\n\nTested on the AXI Ethernet MAC of an ADVA TimeCard X2 (PCIe card, with\nthe built-in AXI DMA): traffic passes after each of ten down/up cycles,\neach running axienet_dma_bd_release(), so the unmap-then-free order is\nexercised on every buffer.  A failed RX refill was not reproduced, so\nthe skip over an empty slot was not exercised.","publishedAt":"2026-11-30T13:32:56.733Z","updatedAt":"2026-11-30T13:32:56.733Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"c60fa2228d1951c2a5ae407a68b55c7980d18f48","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"1a1f8db7fe01bf83d5688c9ce80e5f7b1858ee23","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"33459fda6e8ea5579d19c74214f25f48c5e2a10d","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"333dc11fdaebd25be3fed536f7ac71640fde5802","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"8996b69e2b2e19545d9d03308dae03f964529066","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"55e797f2afd48b7a01c62bbf635e7b5c868a2238","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"ea3570709ff0f6a3d466743df6cada074a75cfcd","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"b59787892d04a5647a7e662fbb02cd0abdb1a993","versionType":"git"},{"version":"8876a2ac1b926cd8422029f4ed2007d5d0e29119","status":"affected","versionType":"git"},{"version":"5.4.283","status":"affected","lessThan":"5.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/xilinx/xilinx_axienet_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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/ethernet/xilinx/xilinx_axienet_main.c"]}],"references":["https://git.kernel.org/stable/c/c60fa2228d1951c2a5ae407a68b55c7980d18f48","https://git.kernel.org/stable/c/1a1f8db7fe01bf83d5688c9ce80e5f7b1858ee23","https://git.kernel.org/stable/c/33459fda6e8ea5579d19c74214f25f48c5e2a10d","https://git.kernel.org/stable/c/333dc11fdaebd25be3fed536f7ac71640fde5802","https://git.kernel.org/stable/c/8996b69e2b2e19545d9d03308dae03f964529066","https://git.kernel.org/stable/c/55e797f2afd48b7a01c62bbf635e7b5c868a2238","https://git.kernel.org/stable/c/ea3570709ff0f6a3d466743df6cada074a75cfcd","https://git.kernel.org/stable/c/b59787892d04a5647a7e662fbb02cd0abdb1a993"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139243.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139243","state":"PUBLISHED","datePublished":"2026-11-30T13:32:56.733Z","dateUpdated":"2026-11-30T13:32:56.733Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"net: axienet: release every RX buffer in axienet_dma_bd_release()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: axienet: release every RX buffer in axienet_dma_bd_release()\n\nThe RX walk in axienet_dma_bd_release() stops at the first descriptor\nwithout an skb, assuming that such a slot and all after it were never\nfilled.  That holds on the axienet_dma_bd_init() error path, but not once\nthe ring has been running: when axienet_rx_poll() fails to allocate or\nmap a replacement buffer it leaves the slot it emptied with a NULL skb,\nin the middle of a populated ring, until a later poll refills it.\nClosing the interface before then leaks the skb and the streaming DMA\nmapping of every descriptor after that slot, which can be most of the\nring, and is most likely under memory pressure.\n\nThe walk also frees each skb before unmapping it.  With swiotlb, the\nDMA_FROM_DEVICE unmap copies the bounce buffer back into the skb data\nthat was just freed, and on non-coherent platforms it invalidates cache\nlines that may already belong to a new owner.\n\nSkip empty slots instead of stopping at the first one.  An emptied slot\nstill has a non-zero cntrl but its buffer is already unmapped, so the\nskip has to cover the unmap too, which it does by coming before it.\nThen unmap before freeing, as axienet_rx_poll() does.\n\nThis was reported by the Sashiko AI review bot.\n\nTested on the AXI Ethernet MAC of an ADVA TimeCard X2 (PCIe card, with\nthe built-in AXI DMA): traffic passes after each of ten down/up cycles,\neach running axienet_dma_bd_release(), so the unmap-then-free order is\nexercised on every buffer.  A failed RX refill was not reproduced, so\nthe skip over an empty slot was not exercised."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"c60fa2228d1951c2a5ae407a68b55c7980d18f48","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"1a1f8db7fe01bf83d5688c9ce80e5f7b1858ee23","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"33459fda6e8ea5579d19c74214f25f48c5e2a10d","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"333dc11fdaebd25be3fed536f7ac71640fde5802","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"8996b69e2b2e19545d9d03308dae03f964529066","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"55e797f2afd48b7a01c62bbf635e7b5c868a2238","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"ea3570709ff0f6a3d466743df6cada074a75cfcd","versionType":"git"},{"version":"f26667a373f34ace925c90a1e881b1774d640dc8","status":"affected","lessThan":"b59787892d04a5647a7e662fbb02cd0abdb1a993","versionType":"git"},{"version":"8876a2ac1b926cd8422029f4ed2007d5d0e29119","status":"affected","versionType":"git"},{"version":"5.4.283","status":"affected","lessThan":"5.5","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/xilinx/xilinx_axienet_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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/ethernet/xilinx/xilinx_axienet_main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c60fa2228d1951c2a5ae407a68b55c7980d18f48"},{"url":"https://git.kernel.org/stable/c/1a1f8db7fe01bf83d5688c9ce80e5f7b1858ee23"},{"url":"https://git.kernel.org/stable/c/33459fda6e8ea5579d19c74214f25f48c5e2a10d"},{"url":"https://git.kernel.org/stable/c/333dc11fdaebd25be3fed536f7ac71640fde5802"},{"url":"https://git.kernel.org/stable/c/8996b69e2b2e19545d9d03308dae03f964529066"},{"url":"https://git.kernel.org/stable/c/55e797f2afd48b7a01c62bbf635e7b5c868a2238"},{"url":"https://git.kernel.org/stable/c/ea3570709ff0f6a3d466743df6cada074a75cfcd"},{"url":"https://git.kernel.org/stable/c/b59787892d04a5647a7e662fbb02cd0abdb1a993"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:56.733Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.283"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}