IT lexicon › Security › pinsyscall

pinsyscall

Security På svenska → Updated: 2026-11-09

OpenBSD's mechanism for pinning every system call to the exact address in libc it is allowed to come from.

A classic exploit only needs to find a syscall instruction somewhere in memory and steer execution there with the right registers loaded. OpenBSD has been removing that freedom piece by piece. First, only libc's text segment was allowed to make system calls at all. OpenBSD 7.3 (2023) added pinsyscall(2), nailing execve to a single registered address, and 7.5 (2024) extended the idea to every call: libc and the dynamic linker hand the kernel a table, and the kernel kills any process whose call arrives from the wrong place.

For an attacker with a ROP chain, finding a system call is no longer enough — you have to land exactly where libc makes it. For languages with their own syscall stubs, Go being the notable one, it meant going through libc like everybody else.

← Back to the lexicon