Linux
drm/amdkfd: Check bounds for allocate_sdma_queue restore_sdma_id
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Check bounds for allocate_sdma_queue restore_sdma_id allocate_sdma_queue has an option where the sdma queue id can be specified (used by CRIU). We weren't bounds-checking that value. Confirm it's less than the maximum number of queues.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2485c12c980a36bb9e23ababb07d73c4ac6a45af, < 41460d2dd0246f0ab7e80b103d34c8649e022999
- >= 2485c12c980a36bb9e23ababb07d73c4ac6a45af, < 25e1b29ecc8da3609ba0072ca54a3b1fdd1578f3
- >= 2485c12c980a36bb9e23ababb07d73c4ac6a45af, < 42f2bd50236b61ad0aeb2c233c990ee0d615fdad
- >= 2485c12c980a36bb9e23ababb07d73c4ac6a45af, < dd2870ca036e1d51baa59f942007b36a595b5890
- >= 2485c12c980a36bb9e23ababb07d73c4ac6a45af, < bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae
Fixed in 41460d2dd0246f0ab7e80b103d34c8649e022999, 25e1b29ecc8da3609ba0072ca54a3b1fdd1578f3, 42f2bd50236b61ad0aeb2c233c990ee0d615fdad, dd2870ca036e1d51baa59f942007b36a595b5890, bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae
- 5.18
Fixed in 0, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2
Mitigation
Upgrade Linux to 41460d2dd0246f0ab7e80b103d34c8649e022999 or 25e1b29ecc8da3609ba0072ca54a3b1fdd1578f3 or 42f2bd50236b61ad0aeb2c233c990ee0d615fdad or dd2870ca036e1d51baa59f942007b36a595b5890 or bfe9a7545b2a7be1c543f1741e16f2d5ec4116ae or later.
Upgrade Linux to 0 or 6.1.189 or 6.6.158 or 6.12.111 or 6.18.53 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.