efivarfs: fix error propagation in efivar_entry_get()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
efivarfs: fix error propagation in efivar_entry_get()
efivar_entry_get() always returns success even if the underlying __efivar_entry_get() fails, masking errors.
This may result in uninitialized heap memory being copied to userspace in the efivarfs_file_read() path.
Fix it by returning the error from __efivar_entry_get().
From the CVE record · Linux
The Linux kernel’s efivar_entry_get() masks errors from an underlying call. During a local efivarfs file read, this may copy uninitialized heap memory to userspace. The input does not specify authentication requirements.
Engineers running Linux kernels with efivarfs should check their versions; affected versions are not specified.