libSceUsbStorageDialog: dialog result and open operations fault on unwritable pointers instead of returning COMMON_DIALOG_ERROR_ARG_NULL #16045
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-11-05T12:53:31Z.
What happens
In
core/libs/prx/libSceUsbStorageDialog/Export.cpp,sceUsbStorageDialogGetResultandsceUsbStorageDialogOpendirectly dereference caller-supplied pointer arguments (result->result,param->base,param->userId, etc.) without checking memory readability or writability.When a guest title passes an unwritable or unmapped pointer (such as
0x10), host memory access triggers an unhandled memory fault / segmentation fault instead of safely returningCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D).Proposed Fix
GuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchinsceUsbStorageDialogGetResultandsceUsbStorageDialogOpen.COMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) when guest pointer access fails.core/libs/tests/GuestUsbStorageDialog.cpp.docs/dev/debt/libSceUsbStorageDialog.md.