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

Published Aug 26, 2026
·
Updated

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

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

In paprphyattestcreatehandle(), 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.

Affected Software

1 affected component
Linux Kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Validate params->cmd.length in papr_phy_attest_create_handle(): return -EINVAL if params->cmd.length is 0 or greater than sizeof(params->cmd), before it is used, to prevent buffer overflow.

    Linux kernel: powerpc/pseries papr-phy-attest (papr_phy_attest_create_handle()) Return -EINVAL for invalid cmd.length = -EINVAL when params->cmd.length is 0 or exceeds sizeof(params->cmd)
  2. Operational

    Fix the mem leak by freeing params on the error/negative path: free it on the negative fd as described, since params is freed on the success path but not on error.

Event History

Aug 26, 2026
CVE Published
via MITRE·02:37 PM
Data Sourced
via MITRE·02:37 PM
Description
Data Sourced
via NVD·03:17 PM
Description

Frequently Asked Questions

1

What input condition causes the memory-safety issue?

The command length is used without validation. A length of zero or a value larger than the command buffer size can trigger the issue.

2

What behavior indicates the fix is present?

The corrected code rejects a zero command length or one exceeding sizeof(params->cmd) with -EINVAL before using it.

3

Are there resource-management issues associated with failed requests?

Yes. The fix frees params on error paths after allocation and when the returned file descriptor is negative, preventing memory leaks in those cases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203