{"id":"CVE-2026-80571","state":"PUBLISHED","title":"powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak\n\nIn papr_phy_attest_create_handle(), the params->cmd.length is not\nvalidated before use, which can result in a buffer overlow.  Check it and\nreturn -EINVAL if it is either 0 or exceeds sizeof(params->cmd).\n\nAlso, params is freed on the success path but not error. Free it on\nerrors after memory allocation.  And free it on negative fd.","publishedAt":"2026-08-26T14:37:32.541Z","updatedAt":"2026-08-26T14:37:32.541Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"828a8d1a9107aec6353d896882df8383accf7e80","versionType":"git"},{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"ed98ce338f9a65c90cb930b088f1eb36de7181af","versionType":"git"},{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"5b17f3f34391372faf03e79d947e0c50ab6dd258","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/platforms/pseries/papr-phy-attest.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/platforms/pseries/papr-phy-attest.c"]}],"references":["https://git.kernel.org/stable/c/828a8d1a9107aec6353d896882df8383accf7e80","https://git.kernel.org/stable/c/ed98ce338f9a65c90cb930b088f1eb36de7181af","https://git.kernel.org/stable/c/5b17f3f34391372faf03e79d947e0c50ab6dd258"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80571.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80571","state":"PUBLISHED","datePublished":"2026-08-26T14:37:32.541Z","dateUpdated":"2026-08-26T14:37:32.541Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.768Z"},"containers":{"cna":{"title":"powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak\n\nIn papr_phy_attest_create_handle(), the params->cmd.length is not\nvalidated before use, which can result in a buffer overlow.  Check it and\nreturn -EINVAL if it is either 0 or exceeds sizeof(params->cmd).\n\nAlso, params is freed on the success path but not error. Free it on\nerrors after memory allocation.  And free it on negative fd."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"828a8d1a9107aec6353d896882df8383accf7e80","versionType":"git"},{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"ed98ce338f9a65c90cb930b088f1eb36de7181af","versionType":"git"},{"version":"86900ab620a42396a749b506d4a187820fc3fabe","status":"affected","lessThan":"5b17f3f34391372faf03e79d947e0c50ab6dd258","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/platforms/pseries/papr-phy-attest.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/platforms/pseries/papr-phy-attest.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/828a8d1a9107aec6353d896882df8383accf7e80"},{"url":"https://git.kernel.org/stable/c/ed98ce338f9a65c90cb930b088f1eb36de7181af"},{"url":"https://git.kernel.org/stable/c/5b17f3f34391372faf03e79d947e0c50ab6dd258"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-26T14:37:32.541Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}