s390/checksum: Fix csum_partial() without vector facility
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:
s390/checksum: Fix csum_partial() without vector facility
Currently csum_partial() calls csum_copy() with copy=false and dst=NULL. On machines without the vector facility, csum_copy() falls back to cksm(dst, ...), causing the checksum to be calculated from address zero instead of the source buffer.
The VX implementation already checksums data loaded from src. Make the fallback do the same by passing src to cksm().
From the CVE record · Linux
The Linux kernel's s390 checksum code can calculate a checksum from address zero instead of the source buffer when the machine lacks the vector facility. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel on s390 machines without the vector facility should check their kernel versions; affected versions are not specified.