Bug 2560030 (CVE-2026-115837) - CVE-2026-115837 sequoia-openpgp: sequoia-openpgp: Argon2 string-to-key parameters are not limited by StandardPolicy
Summary: CVE-2026-115837 sequoia-openpgp: sequoia-openpgp: Argon2 string-to-key parame...
Keywords:
Status: NEW
Alias: CVE-2026-115837
Deadline: 2026-11-15
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-23 16:52 UTC by OSIDB Bzimport
Modified: 2026-11-27 07:55 UTC (History)
46 users (show)

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


Attachments (Terms of Use)

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.


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