s390/pkey: Check length in pkey_pckmo handler implementation
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/pkey: Check length in pkey_pckmo handler implementation
Explicitly check the length of the target buffer in the pkey_pckmo implementation of the key_to_protkey() handler function. The handler function fails, if the generated output data exceeds the length of the provided target buffer.
From the CVE record · Linux
The Linux kernel’s s390/pkey key_to_protkey() handler did not explicitly check whether its generated output fit in the target buffer. If the output exceeded that buffer, the missing check could cause a buffer overflow. The input does not establish how an attacker could reach the handler or whether authentication or user interaction is required.
Engineers running Linux kernels with the s390/pkey implementation should check their versions; affected versions are not specified.