libkernel: sceKernelGetModuleList and sceKernelGetModuleInfo fault on invalid memory pointers #13569
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-30T18:31:03Z.
Environment
0a90776f7f(main)Describe the bug
FillModuleListandFillModuleInfo(underlyingsceKernelGetModuleList,sceKernelGetModuleList2,sceKernelGetModuleInfo, andsceKernelGetModuleInfo2) directly dereference and write throughhandles,actual, andinfoguest pointers. If a non-null invalid or unwritable guest address is passed, the host crashes with a segmentation fault (SIGSEGV) instead of returningSCE_KERNEL_ERROR_EFAULT(0x8002000e).Expected behavior
Guest output buffers (
handles,actual,info) should be verified viaGuestCopyOut_nid_no_patchandGuestCopyIn_nid_no_patch, returningSCE_KERNEL_ERROR_EFAULTif guest memory is invalid or unwritable.