CyberRota Analysis
AI-GeneratedA vulnerability in the Linux kernel affects the handling of PCI P2PDMA cases within the iommu_dma_map_sg() function, where the DMA length for scatterlist segments is incorrectly assigned. This flaw can lead to corrupted DMA lengths in multi-segment scatterlists, potentially resulting in data corruption or system instability. Organizations using affected Linux kernel versions, particularly those utilizing PCI P2PDMA, should prioritize applying the fix to mitigate these risks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: iommu/dma-iommu: Fix wrong scatterlist length assignment in P2PDMA path In iommu_dma_map_sg(), when handling PCI P2PDMA cases, the DMA length of the current scatterlist segment `s` is incorrectly assigned from the head entry `sg->length` instead of the current entry `s->length`. This typo causes all P2PDMA segments in the scatterlist to inherit the length of the first segment, leading to corrupted DMA lengths for multi- segment scatterlists. Fix this by using `s->length` instead of `sg->length`.