Bug 1963791 (CVE-2020-15254) - CVE-2020-15254 Mozilla: Undefined behavior in bounded channel of crossbeam rust crate
Summary: CVE-2020-15254 Mozilla: Undefined behavior in bounded channel of crossbeam ru...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2020-15254
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-24 04:21 UTC by Doran Moppert
Modified: 2021-10-05 06:56 UTC (History)
4 users (show)

Fixed In Version: firefox 82
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-24 05:32:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Doran Moppert 2021-05-24 04:21:10 UTC
In the crossbeam rust crate, the bounded channel incorrectly assumed that Vec::from_iter had allocated capacity that was the same as the number of iterator elements. Vec::from_iter does not actually guarantee that and may allocate extra memory. The destructor of the bounded channel reconstructs Vec from the raw pointer based on the incorrect assumptions - this is unsound and caused a deallocation with the incorrect capacity when Vec::from_iter had allocated different sizes than the number of iterator elements. The impact on Firefox is undetermined, but in another use case, the behavior was causing corruption of jemalloc structures.



External Reference:

https://www.mozilla.org/en-US/security/advisories/mfsa2020-45/#CVE-2020-15254

Comment 1 Product Security DevOps Team 2021-05-24 05:32:01 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-15254


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