[Crash] Proximity-Triggered Exploit via Invalid Pointer Read in Task/Slot Array (GTA5 b3258)
What happened?
A client can crash all nearby players by manipulating a ped/entity-related network sync value such that a local 3-slot pointer array ends up containing a non-null, non-pointer sentinel value (1) in one slot. When the game's per-frame update logic (rage::gameSkeleton::RunUpdate) walks this array, its null-check does not catch the invalid sentinel, and the code proceeds to dereference it, causing an immediate access violation and client crash. This affects every player within OneSync relevancy range of the exploiting client, not just the exploiter.
Full WinDbg analysis of the crash dump:
Exception
- Failure.Bucket: INVALID_POINTER_READ_c0000005_FiveM_b3258_GTAProcess.exe!Unknown
- ExceptionCode: 0xc0000005, Attempt to read from address 0x69
- Faulting instruction:
mov rcx, qword ptr [rbx+68h]where rbx=1
Root cause (offset chain, confirmed via .ecxr + disassembly)
mov rdi, [rcx+10h] ; rdi = this->0x10
mov rbx, [rdi+1530h] ; rbx = subobj->0x1530 (manager/holder, correctly null-checked)
mov edx, [rcx+0C8h] ; edx = this->0xC8, == -1 at crash time (selector field)
...index-selection math does not treat -1 as a safe "none" case...
mov rbx, [rbx+rax*8+1C90h] ; rbx = manager->slots[index], index resolves to 1
test rbx, rbx
je
Direct memory confirms the corrupted array:
slot[0] = 0x0000000000000000 (valid)
slot[1] = 0x0000000000000001 (INVALID — literal 1, not a pointer)
slot[2] = 0x0000000000000000 (valid)
And the selector field: dd @rsi+0xC8 = 0xffffffff (-1).
The value 1 is too clean to be heap-poison/UAF garbage — this looks like type confusion, where something (likely spoofed network sync data for a ped/entity) writes a boolean/status value into a slot that should hold nullptr or a valid pointer, combined with an index-selection path that doesn't safely handle -1.
Checked all 337 threads via ~*k — no other thread was mid-write to this object at crash time, ruling out a live race as the visible cause.
Expected result
Players near the exploiting client should remain stable. A malformed/out-of-range selector or slot value should be safely ignored (treated as "no task/no selection") rather than dereferenced.
Reproduction steps
- Cheater joins a server running FiveM game build 3258.
- Cheater triggers an unknown exploit — likely spoofed/malformed ped or entity task-state network sync data (specific trigger method not identified in this report; see "Limitations" in the description).
- All players within OneSync relevancy range of the cheater's entity receive the corrupted sync state on their next update tick.
- Affected clients crash with INVALID_POINTER_READ (0xc0000005) inside rage::gameSkeleton::RunUpdate with no action taken by the victim.
Importancy
Crash
Area(s)
FiveM
Specific version(s)
FiveM Game Build 3258
Additional information
Full raw data available on request: complete !analyze -v output, full register dump, all 337 thread stacks, disassembly listing around the fault, and the original ~19GB full memory dump.
Hi, posts where the crash dump is simply fed into AI are absolutely unhelpful.
In the future, it would be easier if you just attached the crash dump and/or a screenshot of the crash dialog. I'll provide a fix for this to the team.
Hi, posts where the crash dump is simply fed into AI are absolutely unhelpful.
In the future, it would be easier if you just attached the crash dump and/or a screenshot of the crash dialog. I'll provide a fix for this to the team.
The message was explained by AI only to provide additional details that may be helpful, especially regarding the English language. I can also provide you with the 19 GB dump file, if that helps. If possible, could you send me your Discord username?
@normal88 please send the full dump if possible, i can also share with divo and daniel, i have them on discord, my username is locutor404
Temporary server script for mitigation of this exploit
local Wait = Wait
local GetPlayers = GetPlayers
local GetPlayerPed = GetPlayerPed
local GetVehiclePedIsIn = GetVehiclePedIsIn
local GetVehicleType = GetVehicleType
local GetPedSpecificTaskType = GetPedSpecificTaskType
local GetPlayerName = GetPlayerName
local DropPlayer = DropPlayer
local RAPPEL_TASK = 67
local YIELD_EVERY = 50
CreateThread(function()
while true do
Wait(500)
local players = GetPlayers()
for i = 1, #players do
if i % YIELD_EVERY == 0 then
Wait(0)
end
local playerId = tonumber(players[i])
if not playerId then
goto continue
end
local ped = GetPlayerPed(playerId)
if ped <= 0 then
goto continue
end
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle <= 0 then
goto continue
end
if GetVehicleType(vehicle) == 'heli' then
goto continue
end
for taskIndex = 0, 7 do
if GetPedSpecificTaskType(ped, taskIndex) == RAPPEL_TASK then
local playerName = GetPlayerName(playerId) or 'unknown'
print((
'[anti-cheat] Flagged %s (ID %d) for suspicious ped task ' ..
'TASK_HELI_PASSENGER_RAPPEL at index %d. Dropping player.'
):format(playerName, playerId, taskIndex))
DropPlayer(playerId, 'Kicked by anti-cheat')
break
end
end
::continue::
end
end
end)