Linux
drm/amd/pm: fix pptable use-after-free
In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: fix pptable use-after-free amdgpu_dpm_get_pp_table() returns a pointer to a driver-owned power table after dropping adev->pm.mutex. The sysfs path then copies from that pointer. A concurrent pp_table write can replace and free the allocation during the copy, causing a use-after-free. Change the DPM interface to copy into caller-provided storage while the mutex is held. Keep the size-only query for attribute discovery without exposing the driver-owned pointer. (cherry picked from commit f6eed7acfd30099ef7baeb6ba45bb59daad80631)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < 3fbb3ac75000e3187f500a91a4099b24206866a1
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < 9efc767335234cf7a892e46d45cd453b711421e7
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < 81b5af1fb0f14cace6c3b3130a05e5602a597820
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < 8c685df5c3b261c42505110965b42f9a754eb9b7
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < b628f2c6feb3a115ea72d3120a2bd94afc5163df
- >= 1684d3ba488529266ce6f97b88076bd185f4790e, < bb493058c35c8676e48269ab6732688ea733d23c
Fixed in 3fbb3ac75000e3187f500a91a4099b24206866a1, 9efc767335234cf7a892e46d45cd453b711421e7, 81b5af1fb0f14cace6c3b3130a05e5602a597820, 8c685df5c3b261c42505110965b42f9a754eb9b7, b628f2c6feb3a115ea72d3120a2bd94afc5163df, bb493058c35c8676e48269ab6732688ea733d23c
- 4.9
Fixed in 0, 6.1.184, 6.6.153, 6.12.105, 6.18.46, 7.1.8, 7.2
Mitigation
Upgrade Linux to 3fbb3ac75000e3187f500a91a4099b24206866a1 or 9efc767335234cf7a892e46d45cd453b711421e7 or 81b5af1fb0f14cace6c3b3130a05e5602a597820 or 8c685df5c3b261c42505110965b42f9a754eb9b7 or b628f2c6feb3a115ea72d3120a2bd94afc5163df or bb493058c35c8676e48269ab6732688ea733d23c or later.
Upgrade Linux to 0 or 6.1.184 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.