efivarfs: fix error propagation in efivar_entry_get()
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().
02 / AFFECTED SOFTWARE
Affected packages
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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().
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/3960f1754664661a970dc9ebbab44ff93a0b4c42
- https://git.kernel.org/stable/c/4b22ec1685ce1fc0d862dcda3225d852fb107995
- https://git.kernel.org/stable/c/510a16f1c5c1690b33504052bc13fbc2772c23f8
- https://git.kernel.org/stable/c/89b8ca709eeeabcc11ebba64806677873a2787a8
- https://git.kernel.org/stable/c/e4e15a0a4403c96d9898d8398f0640421df9cb16
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23156.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-23156