gsmi: fix null-deref in gsmi_get_variable
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 74c5b31c6618f01079212332b2e5f6c42f2d6307 · < 6646d769fdb0ce4318ef9afd127f8526d1ca8393| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gsmi: fix null-deref in gsmi_get_variable
We can get EFI variables without fetching the attribute, so we must allow for that in gsmi.
commit 859748255b43 ("efi: pstore: Omit efivars caching EFI varstore access layer") added a new get_variable call with attr=NULL, which triggers panic in gsmi.
From the CVE record · Linux
The Linux kernel's gsmi_get_variable can dereference a null pointer when an EFI variable is retrieved without fetching its attributes. A get_variable call with attr=NULL can trigger a kernel panic; the input does not specify an attacker, access requirements, or user interaction.
Engineers running Linux kernels that use gsmi should check their exposure; affected versions are not specified.