# CVE-2020-36791: net\_sched: keep alloc\_hash updated after hash allocation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-05-07T13:17:33.882Z
- **Modified:** 2026-08-05T08:44:33.087Z

## Who should check

- Anyone running Linux \>= 73c29d2f6f8ae731b1e09051b69ed3ba2319482b, \< d6cdc5bb19b595486fb2e6661e5138d73a57f454; \>= b974ac51f5834a729de252fc5c1c9de9efd79b45, \< c4453d2833671e3a9f6bd52f0f581056c3736386; \>= 6cb448ee493c8a514c9afa0c346f3f5b3227de85, \< 9f8b6c44be178c2498a00b270872a6e30e7c8266; \>= 478c4b2ffd44e5186c7e22ae7c38a86a5b9cfde5, \< 557d015ffb27b672e24e6ad141fd887783871dc2; \>= dd8142a6fa5270783d415292ec8169f4ea2a5468, \< d23faf32e577922b6da20bf3740625c1105381bf; \>= 2c66ff8d08f81bcf8e8cb22e31e39c051b15336a, \< bd3ee8fb6371b45c71c9345cc359b94da2ddefa9; \>= 599be01ee567b61f4471ee8078870847d0a11e8e, \< 0d1c3530e1bd38382edef72591b78e877e0edcd3
- Anyone running Linux \>= 4.4.214, \< 4.4.218; \>= 4.9.214, \< 4.9.218; \>= 4.14.171, \< 4.14.175; \>= 4.19.103, \< 4.19.114; \>= 5.4.19, \< 5.4.29; \>= 5.5.3, \< 5.5.14

## Description

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

net\_sched: keep alloc\_hash updated after hash allocation

In commit 599be01ee567 ("net\_sched: fix an OOB access in cls\_tcindex")
I moved cp-\>hash calculation before the first
tcindex\_alloc\_perfect\_hash(), but cp-\>alloc\_hash is left untouched.
This difference could lead to another out of bound access.

cp-\>alloc\_hash should always be the size allocated, we should
update it after this tcindex\_alloc\_perfect\_hash().

## Affected and fixed versions

- Linux: \>= 73c29d2f6f8ae731b1e09051b69ed3ba2319482b, \< d6cdc5bb19b595486fb2e6661e5138d73a57f454; \>= b974ac51f5834a729de252fc5c1c9de9efd79b45, \< c4453d2833671e3a9f6bd52f0f581056c3736386; \>= 6cb448ee493c8a514c9afa0c346f3f5b3227de85, \< 9f8b6c44be178c2498a00b270872a6e30e7c8266; \>= 478c4b2ffd44e5186c7e22ae7c38a86a5b9cfde5, \< 557d015ffb27b672e24e6ad141fd887783871dc2; \>= dd8142a6fa5270783d415292ec8169f4ea2a5468, \< d23faf32e577922b6da20bf3740625c1105381bf; \>= 2c66ff8d08f81bcf8e8cb22e31e39c051b15336a, \< bd3ee8fb6371b45c71c9345cc359b94da2ddefa9; \>= 599be01ee567b61f4471ee8078870847d0a11e8e, \< 0d1c3530e1bd38382edef72591b78e877e0edcd3 (cvelist)
- Linux: \>= 4.4.214, \< 4.4.218; \>= 4.9.214, \< 4.9.218; \>= 4.14.171, \< 4.14.175; \>= 4.19.103, \< 4.19.114; \>= 5.4.19, \< 5.4.29; \>= 5.5.3, \< 5.5.14 (cvelist)

## Mitigation

- Upgrade Linux to 0d1c3530e1bd38382edef72591b78e877e0edcd3 or later.
- Upgrade Linux to 5.5.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-36791. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-36791.md
Affected: Linux >= 73c29d2f6f8ae731b1e09051b69ed3ba2319482b, < d6cdc5bb19b595486fb2e6661e5138d73a57f454; >= b974ac51f5834a729de252fc5c1c9de9efd79b45, < c4453d2833671e3a9f6bd52f0f581056c3736386; >= 6cb448ee493c8a514c9afa0c346f3f5b3227de85, < 9f8b6c44be178c2498a00b270872a6e30e7c8266; >= 478c4b2ffd44e5186c7e22a…
Fixed in: Linux 9f8b6c44be178c2498a00b270872a6e30e7c8266, Linux 557d015ffb27b672e24e6ad141fd887783871dc2, Linux 0d1c3530e1bd38382edef72591b78e877e0edcd3, Linux 4.4.218, Linux 4.9.218, Linux 4.14.175, Linux 4.19.114, Linux 5.4.29, Linux 5.5.14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-36791 being exploited?

There is no confirmed exploitation: CVE-2020-36791 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-36791?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2020-36791?

Linux \>= 73c29d2f6f8ae731b1e09051b69ed3ba2319482b, \< d6cdc5bb19b595486fb2e6661e5138d73a57f454; \>= b974ac51f5834a729de252fc5c1c9de9efd79b45, \< c4453d2833671e3a9f6bd52f0f581056c3736386; \>= 6cb448ee493c8a514c9afa0c346f3f5b3227de85, \< 9f8b6c44be178c2498a00b270872a6e30e7c8266; \>= 478c4b2ffd44e5186c7e22ae7c38a86a5b9cfde5, \< 557d015ffb27b672e24e6ad141fd887783871dc2; \>= dd8142a6fa5270783d415292ec8169f4ea2a5468, \< d23faf32e577922b6da20bf3740625c1105381bf; \>= 2c66ff8d08f81bcf8e8cb22e31e39c051b15336a, \< bd3ee8fb6371b45c71c9345cc359b94da2ddefa9; \>= 599be01ee567b61f4471ee8078870847d0a11e8e, \< 0d1c3530e1bd38382edef72591b78e877e0edcd3; Linux \>= 4.4.214, \< 4.4.218; \>= 4.9.214, \< 4.9.218; \>= 4.14.171, \< 4.14.175; \>= 4.19.103, \< 4.19.114; \>= 5.4.19, \< 5.4.29; \>= 5.5.3, \< 5.5.14.

### Is there a fix for CVE-2020-36791?

Yes. Fixed in Linux 9f8b6c44be178c2498a00b270872a6e30e7c8266, Linux 557d015ffb27b672e24e6ad141fd887783871dc2, Linux 0d1c3530e1bd38382edef72591b78e877e0edcd3, Linux 4.4.218, Linux 4.9.218, Linux 4.14.175, Linux 4.19.114, Linux 5.4.29, Linux 5.5.14. Upgrade Linux to 0d1c3530e1bd38382edef72591b78e877e0edcd3 or later. Upgrade Linux to 5.5.14 or later.

### How do I check if I'm affected by CVE-2020-36791?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d6cdc5bb19b595486fb2e6661e5138d73a57f454>
- patch: <https://git.kernel.org/stable/c/c4453d2833671e3a9f6bd52f0f581056c3736386>
- patch: <https://git.kernel.org/stable/c/9f8b6c44be178c2498a00b270872a6e30e7c8266>
- patch: <https://git.kernel.org/stable/c/557d015ffb27b672e24e6ad141fd887783871dc2>
- patch: <https://git.kernel.org/stable/c/d23faf32e577922b6da20bf3740625c1105381bf>
- patch: <https://git.kernel.org/stable/c/bd3ee8fb6371b45c71c9345cc359b94da2ddefa9>
- patch: <https://git.kernel.org/stable/c/0d1c3530e1bd38382edef72591b78e877e0edcd3>
- other: <https://syzkaller.appspot.com/bug?id=ea260693da894e7b078d18fca2c9c0a19b457534>
- other: <https://blog.cdthoughts.ch/2021/03/16/syzbot-bug.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-36791>

HTML: <https://flawdb.com/CVE-2020-36791> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-36791>
