Bug 2560030 (CVE-2026-115837)

Summary: CVE-2026-115837 sequoia-openpgp: sequoia-openpgp: Argon2 string-to-key parameters are not limited by StandardPolicy
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akhatavk, anthomas, aos-team-art-private, asdas, dbosanac, dpaolell, dschmidt, ehelms, ggainey, jdelft, jlanda, jpasqual, jreimann, jupierce, juwatts, kshier, lblicha, lgarciaa, mbiarnes, mdellweg, mdessi, mhulan, mrizzi, nmoumoul, ogajduse, osousa, pcattana, pcreech, ppalepu, ppostler, prdhamdh, rbobbitt, rchan, rhel-process-autobot, security-response-team, sghai, sidsharm, simaishi, smallamp, stcannon, suppawar, tmalecek, vlaad, watson-tool-maintainers, yguenane, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in sequoia-openpgp. Argon2 string-to-key parameters supplied by the sender are used without a cost limit when a recipient decrypts a password-protected message or unlocks a password-protected secret key. A failed allocation returns an error. Parameters that still succeed can consume large amounts of CPU time and memory in the recipient process.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2026-11-15   

Description OSIDB Bzimport 2026-10-23 16:52:41 UTC
A flaw was found in sequoia-openpgp. S2K::derive_key runs Argon2id with the t, p, and m parameters from the sender. The only local check is that 2^m fits in a u32, which still allows m=31, requesting 2 TiB of Argon2 memory, and it does not cap t or p. Since 2.0.0, Blocks::new allocates that memory with alloc_zeroed and returns an error if the allocation fails, so the process is not aborted. Parameters that still allocate successfully are not limited. The Policy trait in 2.4.2 has no s2k method, and derive_key does not consult StandardPolicy. A sender can therefore impose a large CPU and memory cost on a recipient who decrypts a password-protected message or unlocks a password-protected secret key. Argon2 S2K support dates from the 2.0.0.alpha.0 line and is present in 2.4.2. This is not the separate Argon2 scratch-memory leak tracked as GitLab issue 1211.