bpf: Disable xfrm_decode_session hook attachment
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9e4e01dfd3254c7f04f24b7c6b29596bc12332f3 · < 12091470c6b4c1c14b2de12dcbae2ada6cb6d20b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Disable xfrm_decode_session hook attachment
BPF LSM programs can currently attach to xfrm_decode_session(). That hook may return an error, but security_skb_classify_flow() calls it from a void path and triggers BUG_ON() if an error is returned.
Disable BPF attachment to the hook to prevent a BPF LSM program from turning packet classification into a full panic.
From the CVE record · Linux
The Linux kernel allows BPF LSM programs to attach to xfrm_decode_session(). If an attached program returns an error during packet classification, the kernel can panic. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels that allow BPF LSM attachment to xfrm_decode_session() should check their installations; affected versions are not specified.