Bug 2565621

Summary: CVE-2021-48018 vyper: Vyper: Contract state corruption via overlapping reentrancy lock allocation [fedora-all]
Product: [Fedora] Fedora Reporter: TEJ RATHI <trathi>
Component: vyperAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: lemenkov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["aedb2c6b-9ea1-4e2d-8dc3-de52e32a0599"]}
Fixed In Version: vyper-0.2.15 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-03 07:45:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2557986    

Description TEJ RATHI 2026-11-03 07:42:31 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Vyper from 0.2.13 before 0.2.15 allocates storage slots for @nonreentrant reentrancy locks at the same locations as contract storage variables. When a function using @nonreentrant is called, setting the lock overwrites the overlapping storage variable, corrupting contract state and breaking the contract's intended logic.

Comment 1 Peter Lemenkov 2026-11-03 07:45:54 UTC
This was fixed upstream in vyper 0.2.15 (GHSA-7f92-rr6w-cq64 / VVE-2021-0003, published 2021-07-27).

All Fedora releases ship vyper 0.4.3, which already contains the fix and is not affected.