Bug 2364708 (CVE-2020-36791) - CVE-2020-36791 kernel: net_sched: keep alloc_hash updated after hash allocation
Summary: CVE-2020-36791 kernel: net_sched: keep alloc_hash updated after hash allocation
Keywords:
Status: NEW
Alias: CVE-2020-36791
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-07 14:01 UTC by OSIDB Bzimport
Modified: 2025-05-07 16:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-07 14:01:22 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.