DEV Community

Cover image for πŸ›‘οΈ Safe-Linking in Glibc
Md. Monowarul Amin
Md. Monowarul Amin

Posted on

πŸ›‘οΈ Safe-Linking in Glibc

Safe-Linking is a security mechanism introduced in modern versions of Glibc (β‰₯ 2.32) to protect heap metadata β€” especially the forward pointers (FD) stored in tcache and fast bins.

Traditionally, these pointers could be directly overwritten by attackers to perform heap exploitation (like tcache poisoning).
Safe-Linking prevents this by obfuscating pointers using an XOR operation with bits from the chunk’s own address.

πŸ‘‰ Download the Full PDF

Top comments (0)