CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of memory mapping in the PowerPC architecture, specifically within the `spufs_mem_mmap_access()` function, which incorrectly checks bounds against `vma->vm_end` instead of the local store size. This oversight can lead to out-of-bounds access, potentially allowing an attacker to exploit memory corruption vulnerabilities. Organizations using Linux on PowerPC systems should prioritize addressing this issue to mitigate risks associated with unauthorized memory access.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: powerpc/spufs: fix out-of-bounds access in spufs_mem_mmap_access() spufs_mem_mmap_access() computes the local store offset as address - vma->vm_start, but bounds-checks it against vma->vm_end instead of the local store size. On 64-bit, offset is always well below vma->vm_end, so the clamp never fires and len stays unbounded against the LS_SIZE buffer returned by ctx->ops->get_ls(). Reject offsets at or beyond LS_SIZE and clamp len to the remaining space, mirroring the guard already used by spufs_mem_mmap_fault() and spufs_ps_fault().