Where a shield fits, and what it does
Top: a timeline from a kernel bug's disclosure, to the fix merged upstream, to the distribution shipping a fixed kernel, to the host rebooting into it. The whole span from disclosure to reboot is marked as exposed. A shield covers most of that span: it is installed after it is published and uninstalled once the fixed kernel runs. Bottom: a process or network packet reaches a kernel hook (LSM or cgroup_skb); the shield checks for the exploit's precondition. Without it, the normal path continues. With it, the operation is refused (EPERM, EDQUOT or a dropped packet) and the vulnerable code is never reached.
Where a shield fits
Bug
disclosed
Fix merged
upstream
Distribution ships
a fixed kernel
Host rebooted
into it
Exposed: the bug is public, the fixed kernel is not running yet
Shield loaded: the exploit's precondition is refused
Shield loaded: the exploit's precondition is refused
shield published and installed
shield uninstalled
What a shield does
Unprivileged process
or network packet
Kernel hook
LSM · CGROUP_SKB
Shield checks for
the precondition
absent
Normal path continues
present
Refused
EPERM · EDQUOT · DROP
vulnerable code
is never reached
Where a shield fits, and what it does
Top: a timeline from a kernel bug's disclosure, to the fix merged upstream, to the distribution shipping a fixed kernel, to the host rebooting into it. The whole span from disclosure to reboot is marked as exposed. A shield covers most of that span: it is installed after it is published and uninstalled once the fixed kernel runs. Bottom: a process or network packet reaches a kernel hook (LSM or cgroup_skb); the shield checks for the exploit's precondition. Without it, the normal path continues. With it, the operation is refused (EPERM, EDQUOT or a dropped packet) and the vulnerable code is never reached.
Where a shield fits
Bug
disclosed
Fix merged
upstream
Distribution
ships a fixed
kernel
Host
rebooted
into it
Exposed: the bug is public,
the fixed kernel is not running yet
Shield loaded: the exploit's
precondition is refused
Shield loaded: the exploit's
precondition is refused
shield published and installed
shield uninstalled
What a shield does
Unprivileged process
or network packet
Kernel hook
LSM · CGROUP_SKB
Shield checks for
the precondition
absent
Normal path continues
present
Refused
EPERM · EDQUOT · DROP
vulnerable code
is never reached