Description
In the Linux kernel, the following vulnerability has been resolved: e1000/e1000e: Fix leak in DMA error cleanup If an error is encountered while mapping TX buffers, the driver should unmap any buffers already mapped for that skb. Because count is incremented after a successful mapping, it will always match the correct number of unmappings needed when dma_error is reached. Decrementing count before the while loop in dma_error causes an off-by-one error. If any mapping was successful before an unsuccessful mapping, exactly one DMA mapping would leak. In these commits, a faulty while condition caused an infinite loop in dma_error: Commit 03b1320dfcee ("e1000e: remove use of skb_dma_map from e1000e driver") Commit 602c0554d7b0 ("e1000: remove use of skb_dma_map from e1000 driver") Commit c1fa347f20f1 ("e1000/e1000e/igb/igbvf/ixgb/ixgbe: Fix tests of unsigned in *_tx_map()") fixed the infinite loop, but introduced the off-by-one error. This issue may still exist in the igbvf driver, but I did not address it in this patch.
Product status
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 7eaeb778bfaa3b2a804f89321c234d59c74569db
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 0606c24a745bafd1be5d66c48361638cd9cad74b
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 519051c711dfd239ef6e4b28878efee400a035f9
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 0a1fc25deabab4efce64610e3c449485c4fa8f5f
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before fa5ba9867a55e640df0dc79bf0199770fb043f03
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 30e87ade8d678c25a8546cf38c0b498fa5cb27d3
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before 10b5e65959e955a1c8894e0a5413944b5a70204a
c1fa347f20f17f14a4a1575727fa24340e8a9117 (git) before e94eaef11142b01f77bf8ba4d0b59720b7858109
2.6.33
Any version before 2.6.33
5.10.253 (semver)
5.15.203 (semver)
6.1.167 (semver)
6.6.130 (semver)
6.12.78 (semver)
6.18.19 (semver)
6.19.9 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/7eaeb778bfaa3b2a804f89321c234d59c74569db
git.kernel.org/...c/0606c24a745bafd1be5d66c48361638cd9cad74b
git.kernel.org/...c/519051c711dfd239ef6e4b28878efee400a035f9
git.kernel.org/...c/0a1fc25deabab4efce64610e3c449485c4fa8f5f
git.kernel.org/...c/fa5ba9867a55e640df0dc79bf0199770fb043f03
git.kernel.org/...c/30e87ade8d678c25a8546cf38c0b498fa5cb27d3
git.kernel.org/...c/10b5e65959e955a1c8894e0a5413944b5a70204a
git.kernel.org/...c/e94eaef11142b01f77bf8ba4d0b59720b7858109