CVE-2020-36791
net_sched: keep alloc_hash updated after hash allocation
Mitigation
- Upgrade Linux to 0d1c3530e1bd38382edef72591b78e877e0edcd3 or later.
- Upgrade Linux to 5.5.14 or later.
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
Vulnerability facts
- Affected
- 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
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
- CWE
- CWE-125
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/d6cdc5bb19b595486fb2e6661e5138d73a57f454
- https://git.kernel.org/stable/c/c4453d2833671e3a9f6bd52f0f581056c3736386
- https://git.kernel.org/stable/c/9f8b6c44be178c2498a00b270872a6e30e7c8266
- https://git.kernel.org/stable/c/557d015ffb27b672e24e6ad141fd887783871dc2
- https://git.kernel.org/stable/c/d23faf32e577922b6da20bf3740625c1105381bf
- https://git.kernel.org/stable/c/bd3ee8fb6371b45c71c9345cc359b94da2ddefa9
- https://git.kernel.org/stable/c/0d1c3530e1bd38382edef72591b78e877e0edcd3
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.