06

Don’t Expose Kernel Addresses to Userspace

Set the kernel.kptr_restrict sysctl to either:

“1”: Only users with CAP_SYSLOG see real addresses, everybody else zeros

“2”: Everyone sees just zeros

#EmbeddedLinuxSecurity
Did you know that some kernel interfaces contain memory addresses? On security constrained systems, this can be a problem, as it can allow an attacker to gain knowledge about the kernel address space. However, Linux provides a solution to this problem in the form of a sysctl option. We recommend to use this option to hide such information.
Icon with a waving hand

Get in touch

sigma star gmbh
Eduard-Bodem-Gasse 6, 1st floor
6020 Innsbruck | Austria

sigma star gmbh logo