pseries/papr-hvpipe: Prevent kernel stack memory leak to userspace
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.307.0.77.1In 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.
From the CVE record · Linux
The Linux kernel's pseries/papr-hvpipe header contains padding bytes that were not initialized before being copied to userspace. A local user could receive uninitialized kernel stack bytes through that copy; the input does not specify authentication requirements or additional user interaction.
Teams running the Linux kernel should check their systems; affected versions are not specified.