s390/bpf: Zero-extend bpf prog return values and kfunc arguments
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/bpf: Zero-extend bpf prog return values and kfunc arguments
s390x ABI requires callers to zero-extend unsigned arguments and sign-extend signed arguments, and callees to zero-extend unsigned return values and sign-extend signed return values.
s390 BPF JIT currently implements only sign extension. Fix this omission and implement zero extension too.
From the CVE record · Linux
The Linux kernel’s s390 BPF JIT does not zero-extend unsigned BPF program return values and kfunc arguments as required by the s390x ABI. This can cause incorrect value handling; the input does not specify an attacker action or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux on s390 systems should check their kernel; affected versions are not specified.