CVE-2020-36776

thermal/drivers/cpufreq_cooling: Fix slab OOB issue

No CVSS score yet EPSS 0.23%

Published 27 Feb 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2020-36776

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-36776 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

thermal/drivers/cpufreq_cooling: Fix slab OOB issue

Slab OOB issue is scanned by KASAN in cpu_power_to_freq(). If power is limited below the power of OPP0 in EM table, it will cause slab out-of-bound issue with negative array index.

Return the lowest frequency if limited power cannot found a suitable OPP in EM table to fix this issue.

Backtrace: [<ffffffd02d2a37f0>] die+0x104/0x5ac [<ffffffd02d2a5630>] bug_handler+0x64/0xd0 [<ffffffd02d288ce4>] brk_handler+0x160/0x258 [<ffffffd02d281e5c>] do_debug_exception+0x248/0x3f0 [<ffffffd02d284488>] el1_dbg+0x14/0xbc [<ffffffd02d75d1d4>] __kasan_report+0x1dc/0x1e0 [<ffffffd02d75c2e0>] kasan_report+0x10/0x20 [<ffffffd02d75def8>] __asan_report_load8_noabort+0x18/0x28 [<ffffffd02e6fce5c>] cpufreq_power2state+0x180/0x43c [<ffffffd02e6ead80>] power_actor_set_power+0x114/0x1d4 [<ffffffd02e6fac24>] allocate_power+0xaec/0xde0 [<ffffffd02e6f9f80>] power_allocator_throttle+0x3ec/0x5a4 [<ffffffd02e6ea888>] handle_thermal_trip+0x160/0x294 [<ffffffd02e6edd08>] thermal_zone_device_check+0xe4/0x154 [<ffffffd02d351cb4>] process_one_work+0x5e4/0xe28 [<ffffffd02d352f44>] worker_thread+0xa4c/0xfac [<ffffffd02d360124>] kthread+0x33c/0x358 [<ffffffd02d289940>] ret_from_fork+0xc/0x18

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb, before c24a20912eef00587416628149c438e885eb1304
affected from 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb, before 876a5f33e5d961d879c5436987c09b3d9ef70379
affected from 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb, before 6bf443acf6ca4f666d0e4225614ba9993a3aa1a9
affected from 371a3bc79c11b707d7a1b7a2c938dc3cc042fffb, before 34ab17cc6c2c1ac93d7e5d53bb972df9a968f085
affected 39e0651cac9c80865b2838f297f95ffc0f34a1d8
affected febe56f21371ba1e51e8586c3ddf8f54fc62fe61
affected d3b7bacd1115400b94482dfc7efffc175c29b831
affected 9006b543384ab10902819364c1205f11a1458571
affected from 4.14.189, before 4.15
affected from 4.19.134, before 4.20
affected from 5.4.53, before 5.5
affected from 5.7.8, before 5.8
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.10.36 up to and including 5.10.*
unaffected from 5.11.20 up to and including 5.11.*
unaffected from 5.12.3 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2020-36776 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2020-36776

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2020-36776
trivy image --scanners vuln IMAGE | grep CVE-2020-36776

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2020-36776 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.