s390/boot: Avoid IPL parameter append past command line
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/boot: Avoid IPL parameter append past command line
A command line may occupy all but the terminating byte of COMMAND_LINE_SIZE. In that case append_ipl_block_parm() passes a zero size to the IPL parameter conversion helpers and points the destination one byte past early_command_line. The helpers subtract one from the unsigned size and write the converted parameter outside the command line buffer.
Convert the IPL parameter in the command line parsing buffer first. A parameter beginning with '=' can then replace the existing command line regardless of its length, while other parameters are appended only when space remains.
From the CVE record · Linux
The Linux kernel’s s390 boot code can write past the command-line buffer when the command line fills all but its terminating byte and an IPL parameter is appended. The input does not specify whether an attacker can trigger this condition or what access or interaction would be required.
Engineers running the Linux kernel on s390 systems should check their kernel versions against the vendor advisory; affected versions are not specified.