x86/bugs: Enable IBPB flush on BPF JIT allocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 57631054fae6dcc9c892ae6310b58bbb6f6e5048 · < a3af84b0fa00ead01fcd0e28b5d773ff25990a0d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
x86/bugs: Enable IBPB flush on BPF JIT allocation
Enable hardening against JIT spraying when Spectre-v2 mitigations are in use. Specifically, issue an IBPB flush on BPF JIT memory reuse. Skip enabling the IBPB flush if the BPF dispatcher is already using a retpoline sequence.
This hardening applies only when BPF-JIT is in use. Guard the enabling under CONFIG_BPF_JIT so that bugs.c still builds with CONFIG_BPF_JIT=n.
From the CVE record · Linux
The Linux kernel lacked an IBPB flush when reusing BPF JIT memory under Spectre-v2 mitigations, leaving a JIT-spraying hardening gap. This applies only when BPF JIT is in use; the input does not specify what an attacker could achieve or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with BPF JIT in use should check their systems; affected versions are not specified.