PT-2021-16833 · Unknown · Glsl-Layout
Published
2021-01-10
·
Updated
2021-08-25
·
CVE-2021-25902
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
glsl-layout crate versions prior to 0.4.0
Description
An issue was discovered in the glsl-layout crate where a panic occurring within the user-provided function
f (2nd parameter of fn map array) causes a double drop of a single object. This happens because affected versions did not guard against panic within the function f. The flaw was corrected by wrapping the vulnerable object within ManuallyDrop<T>.Recommendations
For versions prior to 0.4.0, update to version 0.4.0 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the
map array function with user-provided functions that may panic, or ensure that such functions are properly handled to prevent panics.Exploit
Fix
Double Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Glsl-Layout