arm64: bpf: Add BHB mitigation to the epilogue for cBPF programs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0be7320a635c2e434e8b67e0e9474a85ceb421c4 · < 852b8ae934b5cbdc62496fa56ce9969aa2edda7f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
arm64: bpf: Add BHB mitigation to the epilogue for cBPF programs
A malicious BPF program may manipulate the branch history to influence what the hardware speculates will happen next.
On exit from a BPF program, emit the BHB mititgation sequence.
This is only applied for 'classic' cBPF programs that are loaded by seccomp.
From the CVE record · Linux
The arm64 Linux kernel lacked a branch-history mitigation when exiting classic cBPF programs loaded by seccomp. An attacker able to load a malicious program of this kind may manipulate branch history to influence what the hardware speculates next. The input does not specify authentication or user-interaction requirements.
Engineers running the Linux kernel on arm64 should check systems that use classic cBPF programs loaded by seccomp; affected versions are not specified.