Linux
powerpc/spufs: fix out-of-bounds access in spufs_mem_mmap_access()
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().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a352894d07059649398c4769dc8b645e1a1dad88, < aa7aa8ba40c089762d821e3987aaae19e1f5705c
- >= a352894d07059649398c4769dc8b645e1a1dad88, < d479a7711f8ff127946467b910d947bd971b94ed
- >= a352894d07059649398c4769dc8b645e1a1dad88, < 9d3569bfdceda69d5ffd5148901e57b69954d9ef
- >= a352894d07059649398c4769dc8b645e1a1dad88, < d97a8f3668949a8a9d1f6202f8c53446f2d89aa7
- >= a352894d07059649398c4769dc8b645e1a1dad88, < 913feef74354c653f10ecd4631df7618a95c49c2
- >= a352894d07059649398c4769dc8b645e1a1dad88, < 3c1e92f75e11a11492b8cb901fceeb9f16ae6415
- >= a352894d07059649398c4769dc8b645e1a1dad88, < 4efa313b15925bdd864784865d6585174979294b
- >= a352894d07059649398c4769dc8b645e1a1dad88, < 47b87f469a35b5ffc81c16eee6b13a9b6c8d55c6
Fixed in aa7aa8ba40c089762d821e3987aaae19e1f5705c, d479a7711f8ff127946467b910d947bd971b94ed, 9d3569bfdceda69d5ffd5148901e57b69954d9ef, d97a8f3668949a8a9d1f6202f8c53446f2d89aa7, 913feef74354c653f10ecd4631df7618a95c49c2, 3c1e92f75e11a11492b8cb901fceeb9f16ae6415, 4efa313b15925bdd864784865d6585174979294b, 47b87f469a35b5ffc81c16eee6b13a9b6c8d55c6
- 2.6.27
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to aa7aa8ba40c089762d821e3987aaae19e1f5705c or d479a7711f8ff127946467b910d947bd971b94ed or 9d3569bfdceda69d5ffd5148901e57b69954d9ef or d97a8f3668949a8a9d1f6202f8c53446f2d89aa7 or 913feef74354c653f10ecd4631df7618a95c49c2 or 3c1e92f75e11a11492b8cb901fceeb9f16ae6415 or 4efa313b15925bdd864784865d6585174979294b or 47b87f469a35b5ffc81c16eee6b13a9b6c8d55c6 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.