In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: validate SRAT subtables before parsing The KFD SRAT walker reads the first subtable length without checking that a header is present and trusts subsequent lengths when accessing CPU and generic affinity records. Invalid firmware lengths can therefore cause out-of-bounds reads. Validate the table header, every generic subtable range, and each supported typed record before reading its fields. (cherry picked from commit d76b655c98e8cc9e791b31502ad274f47dee2aae)
https://git.kernel.org/stable/c/9866cb13ba4d39aa8fed34b765d4aecabe04f02e
https://git.kernel.org/stable/c/8f654fea546a16d794c46afd81cdca2ccb4e6cf9
https://git.kernel.org/stable/c/7f51881b0bb6ae781071e11cf327d851c8f3cc8a
https://git.kernel.org/stable/c/7f1ed723c19846fd176243acb68ecdccb22bfa72
https://git.kernel.org/stable/c/52c175823a937a4a7c1fd1ba45439d8bb1d5ebe3
https://git.kernel.org/stable/c/437fa225f646ee74eef462f592160e608b231d74
https://git.kernel.org/stable/c/218d17d8331036311ffca004933f0e0b023e0705