msm: adsprpc: use-after-free (UAF) in global maps
Currently, remote heap maps get added to the global list before the fastrpc_internal_mmap function completes the mapping. Meanwhile, the fastrpc_internal_munmap function accesses the map, starts unmapping, and frees the map before the fastrpc_internal_mmap function completes, resulting in a use-after-free (UAF) issue. Add the map to the list after the fastrpc_internal_mmap function completes the mapping. Change-Id: Ia524f142edba57a1f389dd0e5c83a1967c7f5a59 Acked-by:Abhishek Singh <[email protected]> Signed-off-by:
Santosh Sakore <[email protected]> (cherry picked from commit 64e5b566)
Loading