Skip to contentSkip to conversation

CVE-2026-46182: pseries/papr-hvpipe: Prevent kernel stack memory leak to userspace

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

pseries/papr-hvpipe: Prevent kernel stack memory leak to userspace

The hdr variable is allocated on the stack and only hdr.version and hdr.flags are initialized explicitly. Because the struct papr_hvpipe_hdr contains reserved padding bytes (reserved[3] and reserved2[40]), these could leak the uninitialized bytes to userspace after copy_to_user().

This patch fixes that by initializing the whole struct to 0.

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

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

	Issue introduced in 6.18 with commit cebdb522fd3edd1fe05f7b4a74a27da7dd0f8d86 and fixed in 6.18.30 with commit 0479b6e9f999cc1cbad7d9f09f574fc387e605d5
	Issue introduced in 6.18 with commit cebdb522fd3edd1fe05f7b4a74a27da7dd0f8d86 and fixed in 7.0.7 with commit f88f8e4485b437e0a2f96a7ff1f88aa22d925659
	Issue introduced in 6.18 with commit cebdb522fd3edd1fe05f7b4a74a27da7dd0f8d86 and fixed in 7.1-rc3 with commit cefeed44296261173a806bef988b26bc565da4be

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-46182

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:
arch/powerpc/platforms/pseries/papr-hvpipe.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/0479b6e9f999cc1cbad7d9f09f574fc387e605d5
	https://git.kernel.org/stable/c/f88f8e4485b437e0a2f96a7ff1f88aa22d925659
	https://git.kernel.org/stable/c/cefeed44296261173a806bef988b26bc565da4be