s390/vfio_ccw: Limit the number of channel program segments
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0a19e61e6d4c6192077ead760ba0a2d350987d4c · < 5405c90d6a47b3014e74ee0618a162449abbbc93| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/vfio_ccw: Limit the number of channel program segments
The processing of channel programs, and the CCWs within them, is done recursively. As such, there is an arbitrary (but not architectural) limit to the number of CCWs that can exist in a single channel program.
The vfio-ccw logic breaks these channel programs into segments whenever it encounters a Transfer-In-Channel (TIC) CCW, and the combined number of segments count towards the global limit. Impose an equivalent limit to the number of segments until such logic can be made non-recursive.
From the CVE record · Linux
The Linux kernel's s390/vfio_ccw logic processes channel programs recursively and did not impose an equivalent limit on the number of segments created by Transfer-In-Channel CCWs. A channel program with too many segments could exceed the intended processing limit. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels that use s390/vfio_ccw should check whether their kernel includes the segment limit; affected versions are not specified.