powerpc/spufs: fix out-of-bounds access in spufs_mem_mmap_access()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a352894d07059649398c4769dc8b645e1a1dad88 · < 3c1e92f75e11a11492b8cb901fceeb9f16ae6415| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s spufs_mem_mmap_access() incorrectly bounds-checks local store access on 64-bit systems. An offset or length beyond the local store can result in out-of-bounds access. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with powerpc/spufs should check whether their kernel includes the fix; affected versions are not specified.