Skip to contentSkip to conversation

CVE-2026-23156: efivarfs: fix error propagation in efivar_entry_get()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 14

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-23156 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.0 with commit 2d82e6227ea189c0589e7383a36616ac2a2d248c and fixed in 6.1.162 with commit 3960f1754664661a970dc9ebbab44ff93a0b4c42
	Issue introduced in 6.0 with commit 2d82e6227ea189c0589e7383a36616ac2a2d248c and fixed in 6.6.123 with commit 510a16f1c5c1690b33504052bc13fbc2772c23f8
	Issue introduced in 6.0 with commit 2d82e6227ea189c0589e7383a36616ac2a2d248c and fixed in 6.12.69 with commit 89b8ca709eeeabcc11ebba64806677873a2787a8
	Issue introduced in 6.0 with commit 2d82e6227ea189c0589e7383a36616ac2a2d248c and fixed in 6.18.9 with commit e4e15a0a4403c96d9898d8398f0640421df9cb16
	Issue introduced in 6.0 with commit 2d82e6227ea189c0589e7383a36616ac2a2d248c and fixed in 6.19 with commit 4b22ec1685ce1fc0d862dcda3225d852fb107995

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-23156

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/efivarfs/vars.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/3960f1754664661a970dc9ebbab44ff93a0b4c42
	https://git.kernel.org/stable/c/510a16f1c5c1690b33504052bc13fbc2772c23f8
	https://git.kernel.org/stable/c/89b8ca709eeeabcc11ebba64806677873a2787a8
	https://git.kernel.org/stable/c/e4e15a0a4403c96d9898d8398f0640421df9cb16
	https://git.kernel.org/stable/c/4b22ec1685ce1fc0d862dcda3225d852fb107995