Berildocs GitHub

Memory cards

UAF becomes control when the freed slot is reallocated

confidence: highupdated: 2026-11-24status: activeexploituafheap

Claim#

A stale pointer is used after free. Reallocating the same size with controlled bytes replaces the object.

Test#

Free the object. Allocate the same size and fill it. Trigger the stale method. If it is a vtable, point it at a fake table.

Proof#

A controlled callback or write from the stale object.

Failure modes#

A UAF crash without reallocation is not control. Allocator behavior differs by version.