There is a flaw in RPM's signature functionality. OpenPGP subkeys are associated with a primary key via a "binding signature."[1] RPM does not check the binding signature of subkeys prior to importing them. If an attacker is able to add or socially engineer another party to add a malicious subkey to a legitimate public key, RPM could wrongly trust a malicious signature. The greatest impact of this flaw is to data integrity. 1. https://tools.ietf.org/html/rfc4880#section-5.2.1 To exploit this flaw, an attacker must either compromise an RPM repository or convince an administrator to install an untrusted RPM or public key. It is strongly recommended to only use RPMs and public keys from trusted sources.
Patches: 1. https://github.com/rpm-software-management/rpm/commit/7b399fcb8f52566e6f3b4327197a85facd08db91 2. https://github.com/rpm-software-management/rpm/commit/236b802a4aa48711823a191d1b7f753c82a89ec5 3. https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8 Tangentially: https://github.com/rpm-software-management/rpm/pull/1844#issuecomment-992541341 (there's some other useful, not necessarily strictly related security fixes going on).
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=188ca6ba0a28ffdcbb063d0bf126a2ed8769448b commit 188ca6ba0a28ffdcbb063d0bf126a2ed8769448b Author: Sam James <sam@gentoo.org> AuthorDate: 2022-07-05 01:13:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-05 01:13:25 +0000 app-arch/rpm: add 4.17.1 Bug: https://bugs.gentoo.org/830380 Signed-off-by: Sam James <sam@gentoo.org> app-arch/rpm/Manifest | 1 + app-arch/rpm/rpm-4.17.1.ebuild | 161 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 162 insertions(+)