{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-46993","id":"CVE-2021-46993","title":"sched: Fix out-of-bound access in uclamp","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched: Fix out-of-bound access in uclamp\n\nUtil-clamp places tasks in different buckets based on their clamp values\nfor performance reasons. However, the size of buckets is currently\ncomputed using a rounding division, which can lead to an off-by-one\nerror in some configurations.\n\nFor instance, with 20 buckets, the bucket size wil","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched: Fix out-of-bound access in uclamp\n\nUtil-clamp places tasks in different buckets based on their clamp values\nfor performance reasons. However, the size of buckets is currently\ncomputed using a rounding division, which can lead to an off-by-one\nerror in some configurations.\n\nFor instance, with 20 buckets, the bucket size will be 1024/20=51. A\ntask with a clamp of 1024 will be mapped to bucket id 1024/51=20. Sadly,\ncorrect indexes are in range [0,19], hence leading to an out of bound\nmemory access.\n\nClamp the bucket id to fix the issue.","published":"2024-02-28T08:13:18.494Z","updated":"2026-08-05T08:45:26.827Z","reserved":"2024-02-27T18:42:55.949Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"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":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"69842cba9ace84849bb9b8edcdf2cefccd97901c","lessThan":"687f523c134b7f0bd040ee1230f6d17990d54172","status":"affected","versionType":"git"},{"version":"69842cba9ace84849bb9b8edcdf2cefccd97901c","lessThan":"f7347c85490b92dd144fa1fba9e1eca501656ab3","status":"affected","versionType":"git"},{"version":"69842cba9ace84849bb9b8edcdf2cefccd97901c","lessThan":"3da3f804b82a0a382d523a21acf4cf3bb35f936d","status":"affected","versionType":"git"},{"version":"69842cba9ace84849bb9b8edcdf2cefccd97901c","lessThan":"42ee47c7e3569d9a0e2cb5053c496d97d380472f","status":"affected","versionType":"git"},{"version":"69842cba9ace84849bb9b8edcdf2cefccd97901c","lessThan":"6d2f8909a5fabb73fe2a63918117943986c39b6c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"5.4.120","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.38","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.11.22","lessThanOrEqual":"5.11.*","status":"unaffected","versionType":"semver"},{"version":"5.12.5","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/687f523c134b7f0bd040ee1230f6d17990d54172","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/f7347c85490b92dd144fa1fba9e1eca501656ab3","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/3da3f804b82a0a382d523a21acf4cf3bb35f936d","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/42ee47c7e3569d9a0e2cb5053c496d97d380472f","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/6d2f8909a5fabb73fe2a63918117943986c39b6c","tags":["x_transferred","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.00243,"epssPercentile":0.15703,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-46993","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46993","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-46993","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-46993","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}