powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5b17f3f34391372faf03e79d947e0c50ab6dd258, Kernel 828a8d1a9107aec6353d896882df8383accf7e80, Kernel ed98ce338f9a65c90cb930b088f1eb36de7181af and 2 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=86900ab620a42396a749b506d4a187820fc3fabe <5b17f3f34391372faf03e79d947e0c50ab6dd258, >=86900ab620a42396a749b506d4a187820fc3fabe <828a8d1a9107aec6353d896882df8383accf7e80, >=86900ab620a42396a749b506d4a187820fc3fabe <ed98ce338f9a65c90cb930b088f1eb36de7181af | 5b17f3f34391372faf03e79d947e0c50ab6dd258, 828a8d1a9107aec6353d896882df8383accf7e80, ed98ce338f9a65c90cb930b088f1eb36de7181af |
| linux-kernel: Kernel | >=6.16.0 <6.18.46, >=6.19.0 <7.1.10 | 6.18.46, 7.1.10 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket