# CVE-2021-46993: sched: Fix out-of-bound access in uclamp

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:18.494Z
- Modified: 2026-08-05T08:45:26.827Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

sched: Fix out-of-bound access in uclamp

Util-clamp places tasks in different buckets based on their clamp values
for performance reasons. However, the size of buckets is currently
computed using a rounding division, which can lead to an off-by-one
error in some configurations.

For instance, with 20 buckets, the bucket size will be 1024/20=51. A
task with a clamp of 1024 will be mapped to bucket id 1024/51=20. Sadly,
correct indexes are in range [0,19], hence leading to an out of bound
memory access.

Clamp the bucket id to fix the issue.

(As written by CVE List.)

## Affected

- Linux Linux: from 69842cba9ace84849bb9b8edcdf2cefccd97901c before 687f523c134b7f0bd040ee1230f6d17990d54172; from 69842cba9ace84849bb9b8edcdf2cefccd97901c before f7347c85490b92dd144fa1fba9e1eca501656ab3; from 69842cba9ace84849bb9b8edcdf2cefccd97901c before 3da3f804b82a0a382d523a21acf4cf3bb35f936d; from 69842cba9ace84849bb9b8edcdf2cefccd97901c before 42ee47c7e3569d9a0e2cb5053c496d97d380472f; from 69842cba9ace84849bb9b8edcdf2cefccd97901c before 6d2f8909a5fabb73fe2a63918117943986c39b6c; 5.3 (not affected: before 5.3; from 5.4.120 up to 5.4.*; from 5.10.38 up to 5.10.*; from 5.11.22 up to 5.11.*; from 5.12.5 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.3 before 5.4.120; from 5.5 before 5.10.38; from 5.11 before 5.11.22; from 5.12 before 5.12.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/687f523c134b7f0bd040ee1230f6d17990d54172> (patch)
- <https://git.kernel.org/stable/c/f7347c85490b92dd144fa1fba9e1eca501656ab3> (patch)
- <https://git.kernel.org/stable/c/3da3f804b82a0a382d523a21acf4cf3bb35f936d> (patch)
- <https://git.kernel.org/stable/c/42ee47c7e3569d9a0e2cb5053c496d97d380472f> (patch)
- <https://git.kernel.org/stable/c/6d2f8909a5fabb73fe2a63918117943986c39b6c> (patch)

## Sources

- CVE List: [CVE-2021-46993](https://www.cve.org/CVERecord?id=CVE-2021-46993), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-46993](https://nvd.nist.gov/vuln/detail/CVE-2021-46993), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-46993 · Whole record: https://cve.day/CVE-2021-46993.json · Rebuilt by cve.day 2026-11-25T22:58:08.606Z
