Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1684d3ba488529266ce6f97b88076bd185f4790e before 3fbb3ac75000e3187f500a91a4099b24206866a1; affected 1684d3ba488529266ce6f97b88076bd185f4790e before 9efc767335234cf7a892e46d45cd453b711421e7; affected 1684d3ba488529266ce6f97b88076bd185f4790e before 81b5af1fb0f14cace6c3b3130a05e5602a597820; affected 1684d3ba488529266ce6f97b88076bd185f4790e before 8c685df5c3b261c42505110965b42f9a754eb9b7; affected 1684d3ba488529266ce6f97b88076bd185f4790e before b628f2c6feb3a115ea72d3120a2bd94afc5163df; affected 1684d3ba488529266ce6f97b88076bd185f4790e before bb493058c35c8676e48269ab6732688ea733d23c |
| Linux / Linux | affected 4.9; unaffected 0 before 4.9; unaffected 6.1.184 through 6.1.*; unaffected 6.6.153 through 6.6.*; unaffected 6.12.105 through 6.12.*; unaffected 6.18.46 through 6.18.*; unaffected 7.1.8 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/3fbb3ac75000e3187f500a91a4099b24206866a1
- https://git.kernel.org/stable/c/9efc767335234cf7a892e46d45cd453b711421e7
- https://git.kernel.org/stable/c/81b5af1fb0f14cace6c3b3130a05e5602a597820
- https://git.kernel.org/stable/c/8c685df5c3b261c42505110965b42f9a754eb9b7
- https://git.kernel.org/stable/c/b628f2c6feb3a115ea72d3120a2bd94afc5163df
- https://git.kernel.org/stable/c/bb493058c35c8676e48269ab6732688ea733d23c
ADP enrichment
No English description supplied.
No references supplied.