bpf: Return proper address for non-zero offsets in insn array
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Return proper address for non-zero offsets in insn array
The map_direct_value_addr() function of the instruction array map incorrectly adds offset to the resulting address. This is a bug, because later the resolve_pseudo_ldimm64() function adds the offset. Fix it. Corresponding selftests are added in a consequent commit.
From the CVE record · Linux
The Linux kernel’s BPF instruction array map calculates an incorrect address for non-zero offsets because the offset is added twice. The input does not describe an attacker outcome or specify whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.