CVE-2026-80571

powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak

Published Aug 26, 2026 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak

In papr_phy_attest_create_handle(), the params->cmd.length is not
validated before use, which can result in a buffer overlow. Check it and
return -EINVAL if it is either 0 or exceeds sizeof(params->cmd).

Also, params is freed on the success path but not error. Free it on
errors after memory allocation. And free it on negative fd.

Analysis

AI-generated

Technical impact

In the Linux kernel on powerpc/pseries, the function papr_phy_attest_create_handle() fails to validate the cmd.length field before using it, which can lead to a buffer overflow. The overflow could allow an attacker to overwrite kernel memory and execute arbitrary code with elevated privileges. Additionally, the function forgets to free the params structure on error paths, leading to a memory leak. The identified weakness is reflected in CWE‑805. The likely attack vector is local exploitation via a privileged or userland interface that triggers papr_phy_attest, as the bug resides in kernel code. This inference is made because the function is only reachable through kernel‑level operations and the CVE description does not specify an external interface.

Affected Systems

The flaw affects the Linux kernel on all powerpc/pseries builds that include the papr_phy_attest code path. Because the vendor list identifies the Linux kernel as the affected product, any kernel image compiled for powerpc/pseries that has not incorporated the upstream fix is potentially vulnerable. No specific version numbers are listed, so the attack surface extends across all releases until the patch is applied.

Risk and Exploitability

The CVSS score of 7.0 suggests a high impact vulnerability. Given the EPSS score is less than 1%, public exploitation is unlikely at present, and the vulnerability is not in CISA’s KEV catalog. The likely attack vector is local exploitation via a privileged or userland interface that triggers papr_phy_attest; it is inferred that an attacker would need local access or a previously authenticated process to invoke this code. If the code is reachable from a user process, the overflow could lead to privilege escalation to root. Proper defensive coding or disabling the feature mitigates the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel that includes the upstream fix for papr_phy_attest validation and memory deallocation.
  • If patching is not immediately possible, manually apply the patch changes from the referenced Git commits to the kernel source to add cmd.length validation and ensure params are freed on error paths.
  • Disable the papr_phy_attest feature or restrict its usage to privileged processes to prevent accidental exploitation.

Generated by OpenCVE AI on August 28, 2026 at 17:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-120
Type Values Removed Values Added
Weaknesses CWE-805
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-120
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak In papr_phy_attest_create_handle(), the params->cmd.length is not validated before use, which can result in a buffer overlow. Check it and return -EINVAL if it is either 0 or exceeds sizeof(params->cmd). Also, params is freed on the success path but not error. Free it on errors after memory allocation. And free it on negative fd.
Title powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-805

    Buffer Access with Incorrect Length Value

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 26, 2026, 2:37 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 26, 2026, 3:17 PM
Modified
Aug 26, 2026, 3:17 PM
Severity
Moderate
Public date
Aug 26, 2026, 12:00 AM