diff options
| author | 2026-01-17 16:00:45 +0000 | |
|---|---|---|
| committer | 2026-01-19 08:40:36 +0100 | |
| commit | 4b22ec1685ce1fc0d862dcda3225d852fb107995 (patch) | |
| tree | 1c32fb41ebed194f1e061957eff53d3a3923dab3 /samples/kobject/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | efi/cper: Fix cper_bits_to_str buffer handling and return value (diff) | |
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().
Fixes: 2d82e6227ea1 ("efi: vars: Move efivar caching layer into efivarfs")
Cc: <stable@vger.kernel.org> # v6.1+
Signed-off-by: Kohei Enju <kohei@enjuk.jp>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
