{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4460","id":"CVE-2021-4460","title":"drm/amdkfd: Fix UBSAN shift-out-of-bounds warning","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix UBSAN shift-out-of-bounds warning\n\nIf get_num_sdma_queues or get_num_xgmi_sdma_queues is 0, we end up\ndoing a shift operation where the number of bits shifted equals\nnumber of bits in the operand. This behaviour is undefined.\n\nSet num_sdma_queues or num_xgmi_sdma_queues to ULLONG_MAX, if the\ncount is >= number of ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix UBSAN shift-out-of-bounds warning\n\nIf get_num_sdma_queues or get_num_xgmi_sdma_queues is 0, we end up\ndoing a shift operation where the number of bits shifted equals\nnumber of bits in the operand. This behaviour is undefined.\n\nSet num_sdma_queues or num_xgmi_sdma_queues to ULLONG_MAX, if the\ncount is >= number of bits in the operand.\n\nBug: https://gitlab.freedesktop.org/drm/amd/-/issues/1472","published":"2025-10-01T11:45:19.050Z","updated":"2026-08-11T03:17:33.890Z","reserved":"2025-10-01T11:38:13.842Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"35cdc81bfa94d10373ecae279f3c48ca858ac4fd","lessThan":"0c0356ef2498c1a250fe3846f30293f828737309","status":"affected","versionType":"git"},{"version":"35cdc81bfa94d10373ecae279f3c48ca858ac4fd","lessThan":"1874b0ef1426b873de94c61861e38f29a8df714c","status":"affected","versionType":"git"},{"version":"35cdc81bfa94d10373ecae279f3c48ca858ac4fd","lessThan":"3fdc5182700910a685d23df57d65166e8556a266","status":"affected","versionType":"git"},{"version":"35cdc81bfa94d10373ecae279f3c48ca858ac4fd","lessThan":"9069b1b542de8f3bbffef868aff41521b21485cf","status":"affected","versionType":"git"},{"version":"35cdc81bfa94d10373ecae279f3c48ca858ac4fd","lessThan":"50e2fc36e72d4ad672032ebf646cecb48656efe0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","lessThan":"5.4","status":"unaffected","versionType":"semver"},{"version":"5.4.118","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.36","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.11.20","lessThanOrEqual":"5.11.*","status":"unaffected","versionType":"semver"},{"version":"5.12.3","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0c0356ef2498c1a250fe3846f30293f828737309","tags":["Patch","fix"]},{"url":"https://git.kernel.org/stable/c/1874b0ef1426b873de94c61861e38f29a8df714c","tags":["Patch","fix"]},{"url":"https://git.kernel.org/stable/c/3fdc5182700910a685d23df57d65166e8556a266","tags":["Patch","fix"]},{"url":"https://git.kernel.org/stable/c/9069b1b542de8f3bbffef868aff41521b21485cf","tags":["Patch","fix"]},{"url":"https://git.kernel.org/stable/c/50e2fc36e72d4ad672032ebf646cecb48656efe0","tags":["Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00168,"epssPercentile":0.06163,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4460","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4460","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4460","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4460","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}