{"api_version":"1","generated_at":"2026-11-30T16:55:40+00:00","cve":"CVE-2026-139367","urls":{"html":"https://cve.report/CVE-2026-139367","api":"https://cve.report/api/cve/CVE-2026-139367.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139367","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139367"},"summary":{"title":"net: axienet: free outstanding TX buffers in axienet_dma_bd_release()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: axienet: free outstanding TX buffers in axienet_dma_bd_release()\n\naxienet_dma_bd_release() walks the RX ring to unmap and free every\nreceive buffer before releasing it, but frees the TX descriptor ring\nwith dma_free_coherent() alone.  Any descriptor that\naxienet_free_tx_chain() had not yet reclaimed still holds its skb and\nits streaming DMA mapping, and both are lost.\n\naxienet_stop() disables TX NAPI and stops the DMA engine before calling\nit, so nothing reclaims those descriptors afterwards.  Bringing the\ninterface down while frames are in flight therefore leaks up to\nlp->tx_bd_num skbs and mappings each time.\n\naxienet_dma_err_handler() already walks the TX ring this way before it\nrestarts the DMA engine: it unmaps every descriptor whose cntrl is still\nset - axienet_free_tx_chain() clears it on reclaim - frees any skb still\nattached, and clears the descriptor.  Move that loop into a helper,\naxienet_free_tx_bufs(), and call it from axienet_dma_bd_release() too.\nThis relies on axienet_stop() having stopped the DMA engine first, as\nthe RX walk in the same function already does.  The helper frees the\nskbs with dev_kfree_skb_any(), as drops: in the error handler, which\nruns from a workqueue, that frees them directly rather than deferring\nthem to softirq as dev_kfree_skb_irq() did.\n\nThe walk must not run on a ring that is not there.  axienet_open() does\nnot check the result of the reset that runs axienet_dma_bd_init(), so\nwhen that reset fails tx_bd_v is either still NULL or, after an earlier\nclose, points at the ring that close freed.  Clear tx_bd_v and rx_bd_v\nonce their rings are freed, and skip the walk when tx_bd_v is NULL.\nThat also ends the second dma_free_coherent() of a stale ring which the\nsame path already did.  On the axienet_dma_bd_init() error path the TX\nring has just been allocated zeroed, so the walk does nothing.\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, and after each of ten down/up\ncycles and five module reloads, all made with traffic running and each\nrunning axienet_dma_bd_release(), traffic resumes and nothing is logged.\nThe leak itself was not measured, and neither the failed-reset paths nor\naxienet_dma_err_handler() were exercised.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:03","updated_at":"2026-11-30 14:19:03"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/0c20cb4cfb40cf270d6c4c2c2ff5e5d72322644a","name":"https://git.kernel.org/stable/c/0c20cb4cfb40cf270d6c4c2c2ff5e5d72322644a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c7e0d65d86c2107a3a70d86efcb4b4029512ee8a","name":"https://git.kernel.org/stable/c/c7e0d65d86c2107a3a70d86efcb4b4029512ee8a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/23c4150891bb486cd5a0374e4a1af809a19e545a","name":"https://git.kernel.org/stable/c/23c4150891bb486cd5a0374e4a1af809a19e545a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c0266be66c208b9eb451793c41f24ebe00691faf","name":"https://git.kernel.org/stable/c/c0266be66c208b9eb451793c41f24ebe00691faf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/77853b6f475f9929ddc1f57a91c3e0a0588e7502","name":"https://git.kernel.org/stable/c/77853b6f475f9929ddc1f57a91c3e0a0588e7502","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5a85f9f696f755d1c576e32f9855db9d8b4c5028","name":"https://git.kernel.org/stable/c/5a85f9f696f755d1c576e32f9855db9d8b4c5028","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7153cf2240d33fb125dd7e9b56ad7f35c6ffbff0","name":"https://git.kernel.org/stable/c/7153cf2240d33fb125dd7e9b56ad7f35c6ffbff0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fae70acea22713c02737a0268af291127cc210f1","name":"https://git.kernel.org/stable/c/fae70acea22713c02737a0268af291127cc210f1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139367","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139367","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b c7e0d65d86c2107a3a70d86efcb4b4029512ee8a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b fae70acea22713c02737a0268af291127cc210f1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b 77853b6f475f9929ddc1f57a91c3e0a0588e7502 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b 5a85f9f696f755d1c576e32f9855db9d8b4c5028 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b 23c4150891bb486cd5a0374e4a1af809a19e545a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b 7153cf2240d33fb125dd7e9b56ad7f35c6ffbff0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b c0266be66c208b9eb451793c41f24ebe00691faf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b 0c20cb4cfb40cf270d6c4c2c2ff5e5d72322644a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 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/net/ethernet/xilinx/xilinx_axienet_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c7e0d65d86c2107a3a70d86efcb4b4029512ee8a","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"fae70acea22713c02737a0268af291127cc210f1","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"77853b6f475f9929ddc1f57a91c3e0a0588e7502","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"5a85f9f696f755d1c576e32f9855db9d8b4c5028","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"23c4150891bb486cd5a0374e4a1af809a19e545a","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"7153cf2240d33fb125dd7e9b56ad7f35c6ffbff0","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"c0266be66c208b9eb451793c41f24ebe00691faf","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"},{"lessThan":"0c20cb4cfb40cf270d6c4c2c2ff5e5d72322644a","status":"affected","version":"8a3b7a252dca9fb28c23b5bf76c49180a2b60d3b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/xilinx/xilinx_axienet_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.4"},{"lessThan":"3.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","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":"5.10.275","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: axienet: free outstanding TX buffers in axienet_dma_bd_release()\n\naxienet_dma_bd_release() walks the RX ring to unmap and free every\nreceive buffer before releasing it, but frees the TX descriptor ring\nwith dma_free_coherent() alone.  Any descriptor that\naxienet_free_tx_chain() had not yet reclaimed still holds its skb and\nits streaming DMA mapping, and both are lost.\n\naxienet_stop() disables TX NAPI and stops the DMA engine before calling\nit, so nothing reclaims those descriptors afterwards.  Bringing the\ninterface down while frames are in flight therefore leaks up to\nlp->tx_bd_num skbs and mappings each time.\n\naxienet_dma_err_handler() already walks the TX ring this way before it\nrestarts the DMA engine: it unmaps every descriptor whose cntrl is still\nset - axienet_free_tx_chain() clears it on reclaim - frees any skb still\nattached, and clears the descriptor.  Move that loop into a helper,\naxienet_free_tx_bufs(), and call it from axienet_dma_bd_release() too.\nThis relies on axienet_stop() having stopped the DMA engine first, as\nthe RX walk in the same function already does.  The helper frees the\nskbs with dev_kfree_skb_any(), as drops: in the error handler, which\nruns from a workqueue, that frees them directly rather than deferring\nthem to softirq as dev_kfree_skb_irq() did.\n\nThe walk must not run on a ring that is not there.  axienet_open() does\nnot check the result of the reset that runs axienet_dma_bd_init(), so\nwhen that reset fails tx_bd_v is either still NULL or, after an earlier\nclose, points at the ring that close freed.  Clear tx_bd_v and rx_bd_v\nonce their rings are freed, and skip the walk when tx_bd_v is NULL.\nThat also ends the second dma_free_coherent() of a stale ring which the\nsame path already did.  On the axienet_dma_bd_init() error path the TX\nring has just been allocated zeroed, so the walk does nothing.\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, and after each of ten down/up\ncycles and five module reloads, all made with traffic running and each\nrunning axienet_dma_bd_release(), traffic resumes and nothing is logged.\nThe leak itself was not measured, and neither the failed-reset paths nor\naxienet_dma_err_handler() were exercised."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:06.205Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c7e0d65d86c2107a3a70d86efcb4b4029512ee8a"},{"url":"https://git.kernel.org/stable/c/fae70acea22713c02737a0268af291127cc210f1"},{"url":"https://git.kernel.org/stable/c/77853b6f475f9929ddc1f57a91c3e0a0588e7502"},{"url":"https://git.kernel.org/stable/c/5a85f9f696f755d1c576e32f9855db9d8b4c5028"},{"url":"https://git.kernel.org/stable/c/23c4150891bb486cd5a0374e4a1af809a19e545a"},{"url":"https://git.kernel.org/stable/c/7153cf2240d33fb125dd7e9b56ad7f35c6ffbff0"},{"url":"https://git.kernel.org/stable/c/c0266be66c208b9eb451793c41f24ebe00691faf"},{"url":"https://git.kernel.org/stable/c/0c20cb4cfb40cf270d6c4c2c2ff5e5d72322644a"}],"title":"net: axienet: free outstanding TX buffers in axienet_dma_bd_release()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139367","datePublished":"2026-11-30T13:34:06.205Z","dateReserved":"2026-11-30T13:22:15.929Z","dateUpdated":"2026-11-30T13:34:06.205Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:03","lastModifiedDate":"2026-11-30 14:19:03","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139367","Ordinal":"1","Title":"net: axienet: free outstanding TX buffers in axienet_dma_bd_rele","CVE":"CVE-2026-139367","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139367","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: axienet: free outstanding TX buffers in axienet_dma_bd_release()\n\naxienet_dma_bd_release() walks the RX ring to unmap and free every\nreceive buffer before releasing it, but frees the TX descriptor ring\nwith dma_free_coherent() alone.  Any descriptor that\naxienet_free_tx_chain() had not yet reclaimed still holds its skb and\nits streaming DMA mapping, and both are lost.\n\naxienet_stop() disables TX NAPI and stops the DMA engine before calling\nit, so nothing reclaims those descriptors afterwards.  Bringing the\ninterface down while frames are in flight therefore leaks up to\nlp->tx_bd_num skbs and mappings each time.\n\naxienet_dma_err_handler() already walks the TX ring this way before it\nrestarts the DMA engine: it unmaps every descriptor whose cntrl is still\nset - axienet_free_tx_chain() clears it on reclaim - frees any skb still\nattached, and clears the descriptor.  Move that loop into a helper,\naxienet_free_tx_bufs(), and call it from axienet_dma_bd_release() too.\nThis relies on axienet_stop() having stopped the DMA engine first, as\nthe RX walk in the same function already does.  The helper frees the\nskbs with dev_kfree_skb_any(), as drops: in the error handler, which\nruns from a workqueue, that frees them directly rather than deferring\nthem to softirq as dev_kfree_skb_irq() did.\n\nThe walk must not run on a ring that is not there.  axienet_open() does\nnot check the result of the reset that runs axienet_dma_bd_init(), so\nwhen that reset fails tx_bd_v is either still NULL or, after an earlier\nclose, points at the ring that close freed.  Clear tx_bd_v and rx_bd_v\nonce their rings are freed, and skip the walk when tx_bd_v is NULL.\nThat also ends the second dma_free_coherent() of a stale ring which the\nsame path already did.  On the axienet_dma_bd_init() error path the TX\nring has just been allocated zeroed, so the walk does nothing.\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, and after each of ten down/up\ncycles and five module reloads, all made with traffic running and each\nrunning axienet_dma_bd_release(), traffic resumes and nothing is logged.\nThe leak itself was not measured, and neither the failed-reset paths nor\naxienet_dma_err_handler() were exercised.","Type":"Description","Title":"net: axienet: free outstanding TX buffers in axienet_dma_bd_rele"}]}}}