CVE-2026-71225

Libkcapi: iv reuse in libkcapi one-shot symmetric cipher chunking causes cipher state reset across chunk boundaries

Published Aug 5, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in libkcapi. When performing one-shot symmetric cipher operations on large inputs (over 64 KiB) in stateful modes such as Counter (CTR) or Cipher Block Chaining (CBC), the library improperly reuses the Initialization Vector (IV) for each internal data chunk. A remote attacker could potentially exploit this by making an application that uses libkcapi process specially crafted large inputs. This can lead to a significant weakening of data confidentiality, as the repeated IV use can expose relationships in encrypted plaintext, and may also affect data integrity by causing incorrect cryptographic processing.

Analysis

AI-generated

Technical impact

The vulnerability stems from libkcapi's improper IV reuse during one‑shot symmetric cipher operations that internally chunk large inputs (over 64 KiB) in stateful modes such as CTR or CBC. Because the same IV is applied to each internal block, encrypted data loses semantic uniqueness and can reveal relationships between plaintexts. This weakens confidentiality and may also jeopardize integrity by producing incorrect cryptographic results.

Affected Systems

The flaw affects Red Hat Enterprise Linux 10, 8, and 9, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4, all of which include the vulnerable libkcapi library. No specific patch levels or sub‑versions are listed; any deployment using the default library should be considered vulnerable.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. EPSS is not available, so the likelihood of public exploitation is unclear, and the issue is not yet listed in CISA’s KEV catalog. Because a remote attacker can craft a large input for an application that uses libkcapi, the vulnerability can be exploited in a remote or local context if the application accepts user data of sufficient size. The attack does not require elevated privileges in the example description, but the actual success depends on application exposure.

Remediation

Vendor Workaround

To mitigate this issue, applications using `libkcapi` should avoid the one-shot symmetric cipher APIs for inputs exceeding 64 KiB when continuous-message semantics are critical. Instead, prefer the streaming interface for processing large messages, or ensure one-shot inputs remain below the internal chunking threshold to guarantee the IV is applied consistently throughout the operation.


OpenCVE Recommended Actions

  • Prefer the streaming interface for large messages instead of one‑shot APIs to ensure a unique IV is applied per message.
  • Keep one‑shot inputs below the internal chunking threshold of 64 KiB so the IV is consistent across the operation.
  • When available, apply the vendor‑issued patch or update libkcapi to a fixed version.

Generated by OpenCVE AI on August 5, 2026 at 13:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
First Time appeared Redhat rhel Eus
CPEs cpe:/o:redhat:rhel_eus:9.6::baseos
Vendors & Products Redhat rhel Eus
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
CPEs cpe:/o:redhat:enterprise_linux_eus:10.0
Vendors & Products Redhat enterprise Linux Eus
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:10.2
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/o:redhat:enterprise_linux:8::baseos
References
Type Values Removed Values Added
First Time appeared Smuellerdd
Smuellerdd libkcapi
CPEs cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:a:smuellerdd:libkcapi:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Smuellerdd
Smuellerdd libkcapi
Type Values Removed Values Added
First Time appeared Redhat hardened Images
Redhat openshift Container Platform
Vendors & Products Redhat hardened Images
Redhat openshift Container Platform
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in libkcapi. When performing one-shot symmetric cipher operations on large inputs (over 64 KiB) in stateful modes such as Counter (CTR) or Cipher Block Chaining (CBC), the library improperly reuses the Initialization Vector (IV) for each internal data chunk. A remote attacker could potentially exploit this by making an application that uses libkcapi process specially crafted large inputs. This can lead to a significant weakening of data confidentiality, as the repeated IV use can expose relationships in encrypted plaintext, and may also affect data integrity by causing incorrect cryptographic processing.
Title Libkcapi: iv reuse in libkcapi one-shot symmetric cipher chunking causes cipher state reset across chunk boundaries
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Weaknesses CWE-330
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-330

    Use of Insufficiently Random Values

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 2, 2026, 5:13 AM
Reserved
Aug 5, 2026, 9:15 AM
Status
Modified
Published
Aug 5, 2026, 1:24 PM
Modified
Nov 2, 2026, 6:17 AM
Severity
Moderate
Public date
Aug 5, 2026, 11:55 AM