Skip to content
LowOS hardeningBLWK-KERNEL-002

Kernel pointers are exposed to unprivileged users ​

What this means ​

kernel.kptr_restrict is 0 — kernel pointer addresses in /proc are readable by any user, making kernel-exploit development easier (defeats KASLR for local attackers).

How to fix it ​

Set kernel.kptr_restrict=1 (or 2) via /etc/sysctl.d/ and run sysctl --system.

Check it yourself ​

Run a scan and look for BLWK-KERNEL-002 in the results:

sh
bulwark scan

Installed the standalone CLI package instead of the app? The command is bulwarkctl.

How Bulwark decides

Bulwark reads sysctl_kernel and reports this check when:

text
kptr_restrict == 0

If a value can't be read, Bulwark reports the check as undetermined rather than passing it. View the rule source.

References ​

  • CIS Benchmark 1.5.3

Released under the Apache License 2.0.