DEV Community

Cover image for 🛡️ Safe-Linking in Glibc
Md. Monowarul Amin 200042112
Md. Monowarul Amin 200042112

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)