Bug 2026617

Summary: gnupg version shipped with Fedora 35 has a bug in symmetric encryption
Product: [Fedora] Fedora Reporter: stephen_j_jeffrey
Component: gnupg2Assignee: Red Hat Crypto Team <crypto-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 35CC: bcl, crypto-team, jjelen, tm
Target Milestone: ---Flags: fedora-admin-xmlrpc: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-25 12:55:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description stephen_j_jeffrey 2021-11-25 10:32:58 UTC
Description of problem:  Symmetric encryption is broken in version gnupg 2.3.2, which is the version that is shipped with Fedora 35


Version-Release number of selected component (if applicable): 2.3.2



How reproducible: easily



Steps to Reproduce:
1. Encrypt file
> echo "test" > test.txt
> gpg -c test.txt

2. Clear password cache
> gpg-connect-agent reloadagent /bye


3. Attempt to decrypt file (it fails - error shown below)
> gpg -d test.txt.gpg



Actual results:

gpg: AES256.CFB encrypted data
gpg: problem with the agent: End of file
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key



Expected results:

After entering your password, the file should be decrypted and output to stdout.



Additional info: Problem can be overcome by upgrading to version 2.3.3

Comment 1 Jakub Jelen 2021-11-25 12:55:10 UTC
Please, try the latest gnupg from updates or updates-testing. Both of the version are on 2.3.3 now.

It is not clear what rpm version are you using, but this was fixed already two months ago with 2.3.2-3 [1] [2].

[1] https://src.fedoraproject.org/rpms/gnupg2/c/bcbc199b433e017236f4afcbe18e8e14001d81d7
[2] https://src.fedoraproject.org/rpms/gnupg2/c/8047d918db50673fd5ad45a209c7a83052d2f4ac

*** This bug has been marked as a duplicate of bug 2009978 ***