libkernel: sceKernelGetAppInfo faults on invalid memory pointers #13795

Closed
opened 2026-10-31 07:01:55 +00:00 by pushkarreddyy · 0 comments
pushkarreddyy commented 2026-10-31 07:01:55 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-31T07:01:55Z.


Environment

  • AnyPS5 commit: de83e8f270 (main)
  • Title: PS5 system software / app info query callers

Describe the bug

sceKernelGetAppInfo directly dereferences the guest output pointer info via std::memset and std::memcpy. When a guest passes a non-null pointer into unmapped or read-only memory, the host process crashes with SIGSEGV instead of returning SCE_KERNEL_ERROR_EFAULT (0x8002000e).

Expected behavior

Invalid or unwritable guest pointers should be safely checked via WriteGuest and return SCE_KERNEL_ERROR_EFAULT (0x8002000e).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6132206996 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/13795). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-31T07:01:55Z. --- ### Environment - AnyPS5 commit: de83e8f270 (main) - Title: PS5 system software / app info query callers ### Describe the bug `sceKernelGetAppInfo` directly dereferences the guest output pointer `info` via `std::memset` and `std::memcpy`. When a guest passes a non-null pointer into unmapped or read-only memory, the host process crashes with `SIGSEGV` instead of returning `SCE_KERNEL_ERROR_EFAULT` (`0x8002000e`). ### Expected behavior Invalid or unwritable guest pointers should be safely checked via `WriteGuest` and return `SCE_KERNEL_ERROR_EFAULT` (`0x8002000e`).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#13795
No description provided.