{"id":"CVE-2021-46993","aliases":["CVE-2021-46993"],"related":[],"kind":"vulnerability","state":"published","title":"sched: Fix out-of-bound access in uclamp","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: sched: corrige el acceso fuera de los límites en uclamp Util-clamp coloca las tareas en diferentes depósitos según sus valores de fijación por razones de rendimiento. Sin embargo, el tamaño de los depósitos se calcula actualmente mediante una división de redondeo, lo que puede provocar un error de uno por uno en algunas configuraciones. Por ejemplo, con 20 depósitos, el tamaño del depósito será 1024/20=51. Una tarea con una abrazadera de 1024 se asignará al ID del depósito 1024/51=20. Lamentablemente, los índices correctos están en el rango [0,19], lo que provoca un acceso a la memoria fuera de los límites. Sujete la identificación del depósito para solucionar el problema.","source":"nvd"}],"published":"2024-02-28T08:13:18.494Z","modified":"2026-08-05T08:45:26.827Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"69842cba9ace84849bb9b8edcdf2cefccd97901c","fixed":"687f523c134b7f0bd040ee1230f6d17990d54172","status":"affected"},{"type":"git","introduced":"69842cba9ace84849bb9b8edcdf2cefccd97901c","fixed":"f7347c85490b92dd144fa1fba9e1eca501656ab3","status":"affected"},{"type":"git","introduced":"69842cba9ace84849bb9b8edcdf2cefccd97901c","fixed":"3da3f804b82a0a382d523a21acf4cf3bb35f936d","status":"affected"},{"type":"git","introduced":"69842cba9ace84849bb9b8edcdf2cefccd97901c","fixed":"42ee47c7e3569d9a0e2cb5053c496d97d380472f","status":"affected"},{"type":"git","introduced":"69842cba9ace84849bb9b8edcdf2cefccd97901c","fixed":"6d2f8909a5fabb73fe2a63918117943986c39b6c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"5.4.120","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.38","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.22","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.5","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.3","fixed":"5.4.120"},{"status":"affected","introduced":"5.5","fixed":"5.10.38"},{"status":"affected","introduced":"5.11","fixed":"5.11.22"},{"status":"affected","introduced":"5.12","fixed":"5.12.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/687f523c134b7f0bd040ee1230f6d17990d54172","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7347c85490b92dd144fa1fba9e1eca501656ab3","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3da3f804b82a0a382d523a21acf4cf3bb35f936d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42ee47c7e3569d9a0e2cb5053c496d97d380472f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d2f8909a5fabb73fe2a63918117943986c39b6c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:01:01.662Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46993","url":"https://www.cve.org/CVERecord?id=CVE-2021-46993","licence":"CVE Terms of Use","modified":"2026-08-05T08:45:26.827Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46993","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46993","licence":"Public domain","modified":"2026-08-04T10:16:40.427Z"}],"updatedAt":"2026-11-25T22:58:08.606Z","epss":{"score":0.00243,"percentile":0.16611,"date":"2026-12-01T12:00:22.000Z"}}