KVM: s390: Properly handle NULL pointer in dat_cond_set_storage_key()
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:
KVM: s390: Properly handle NULL pointer in dat_cond_set_storage_key()
Some callers pass NULL as oldkey. Calling page_cond_set_storage_key() will cause that NULL pointer to get dereferenced.
Fix by checking for NULL and assigning the pointer to a dummy local variable to avoid crashes.
From the CVE record · Linux
In the Linux kernel's KVM s390 code, a caller can pass a NULL oldkey pointer that is then dereferenced during storage-key handling, causing a crash. The input does not specify an attacker path, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with KVM on s390 should check their versions; affected versions are not specified.