CVE-2021-47044
published high CVSS 3.1 · 7.7sched/fair: Fix shift-out-of-bounds in load_balance()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 80862cbf76c2646f709a57c4517aefe0b094c774 · 5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 2f3eab368e313dba35fc2f51ede778bf7b030b54 · 5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 805cea93e66ca7deaaf6ad3b67224ce47c104c2f · 5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 39a2a6eb5c9b66ea7c8055026303b3aa681b49a5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.10 (affected) · 0 to < 5.10 (unaffected · semver) · 5.10.37 through 5.10.* (unaffected · semver) · 5.11.21 through 5.11.* (unaffected · semver) · 5.12.4 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
Show 69 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kbaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kb-develaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseppc64le | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-devels390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-develnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-docsnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaultppc64le | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaults390x | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_158-defaultx86_64 | Advisory build | 1-150300.7.3.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-macrosnoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-builds390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preempt-develaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preempt-develx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-sourcenoarch | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symss390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-zfcpdumps390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.158.1 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.158.1.150300.18.92.5 | SUSE-SU-2024:1489-1 |
| SUSE / openSUSE | SLE-5 | kernel-rtx86_64 | Advisory build | 5.3.18-150300.166.1 | SUSE-SU-2024:1465-1 |
| SUSE / openSUSE | SLE-5 | kernel-source-rtnoarch | Advisory build | 5.3.18-150300.166.1 | SUSE-SU-2024:1465-1 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
Description
In the Linux kernel, the following vulnerability has been resolved: sched/fair: Fix shift-out-of-bounds in load_balance() Syzbot reported a handful of occurrences where an sd->nr_balance_failed can grow to much higher values than one would expect. A successful load_balance() resets it to 0; a failed one increments it. Once it gets to sd->cache_nice_tries + 3, this *should* trigger an active balance, which will either set it to sd->cache_nice_tries+1 or reset it to 0. However, in case the to-be-active-balanced task is not allowed to run on env->dst_cpu, then the increment is done without any further modification. This could then be repeated ad nauseam, and would explain the absurdly high values reported by syzbot (86, 149). VincentG noted there is value in letting sd->cache_nice_tries grow, so the shift itself should be fixed. That means preventing: """ If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined. """ Thus we need to cap the shift exponent to BITS_PER_TYPE(typeof(lefthand)) - 1. I had a look around for other similar cases via coccinelle: @expr@ position pos; expression E1; expression E2; @@ ( E1 >> E2@pos | E1 >> E2@pos ) @cst depends on expr@ position pos; expression expr.E1; constant cst; @@ ( E1 >> cst@pos | E1 << cst@pos ) @script:python depends on !cst@ pos << expr.pos; exp << expr.E2; @@ # Dirty hack to ignore constexpr if exp.upper() != exp: coccilib.report.print_report(pos[0], "Possible UB shift here") The only other match in kernel/sched is rq_clock_thermal() which employs sched_thermal_decay_shift, and that exponent is already capped to 10, so that one is fine.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 80862cbf76c2646f709a57c4517aefe0b094c774 (affected · git)5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 2f3eab368e313dba35fc2f51ede778bf7b030b54 (affected · git)5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 805cea93e66ca7deaaf6ad3b67224ce47c104c2f (affected · git)5a7f555904671c0737819fe4d19bd6143de3f6c0 to < 39a2a6eb5c9b66ea7c8055026303b3aa681b49a5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.10 (affected)0 to < 5.10 (unaffected · semver)5.10.37 through 5.10.* (unaffected · semver)5.11.21 through 5.11.* (unaffected · semver)5.12.4 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds Read
References
4Provider assertions
3Linux · cna
sched/fair: Fix shift-out-of-bounds in load_balance()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3354f85389da036208752e1ed292f6fff4ff15a4a3a8d61f4d537756d65d2590
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record