Skip to main content
EPSS 0.2%top 94%

CVE-2026-71227: Loop with Unreachable Exit Condition ('Infinite Loop') in Stephan Muelle libkcapi

0
Medium
VulnerabilityCVE-2026-71227cvecve-2026-71227
Published: 08/05/2026 (08/05/2026, 12:42:10 UTC)
Source: CVE Database V5
Vendor/Project: Stephan Muelle
Product: libkcapi

Description

A flaw was found in libkcapi. A local attacker can influence an application that uses the Asynchronous Input/Output (AIO) interface. By reusing an AIO-enabled handle after a prior completion error, the _kcapi_aio_read_all() function can enter a non-terminating wait loop. This can lead to a persistent denial of service, making the affected application or thread unresponsive.

CVSS v3.1

Score 5.1medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Stephan Muelle

libkcapi

Affected versions
>=0.12.0 <1.5.1

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Hardened Images

Red Hat

Red Hat OpenShift Container Platform 4

GitHub Actionsmore threats →cve
libkcapi
pkg:github/libkcapi
Affected versions
>=0.12.0 <1.5.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:37:59 UTC

Technical Analysis

A flaw in libkcapi 0.12.0 allows a local attacker to influence applications using the Asynchronous Input/Output (AIO) interface. Specifically, reusing an AIO-enabled handle after a prior completion error causes the _kcapi_aio_read_all() function to enter a non-terminating wait loop due to an unhandled io_getevents() timeout return. This infinite loop leads to a persistent denial of service by making the affected application or thread unresponsive. The vulnerability is classified under CWE-835 (Loop with Unreachable Exit Condition). The CVSS v3.1 base score is 5.1 (medium severity) with local attack vector, high attack complexity, no privileges required, and no user interaction. The vendor advisory from Red Hat recommends mitigation by avoiding initialization of libkcapi handles with KCAPI_INIT_AIO if AIO is not required, or by destroying and reinitializing handles after any AIO completion error instead of reusing them. No official patch or fix has been published yet.

Potential Impact

The vulnerability causes a persistent denial of service condition by entering an infinite loop in the _kcapi_aio_read_all() function when an AIO-enabled handle is reused after a prior completion error. This results in the affected application or thread becoming unresponsive, consuming CPU resources indefinitely. There is no impact on confidentiality or integrity. The attack requires local access and has high attack complexity.

Mitigation Recommendations

According to the Red Hat advisory, no official patch or fix is currently available. To mitigate the issue, applications should avoid initializing libkcapi handles with KCAPI_INIT_AIO unless AIO functionality is strictly required. If AIO must be used, applications should destroy and reinitialize libkcapi handles after any AIO completion error rather than reusing them for subsequent operations. These mitigations reduce the risk of triggering the infinite loop condition.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-08-05T09:15:14.859Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-71227","vendor":"Red Hat"}]

Threat ID: 6a7336e3bf8831d539ed9129

Added to database: 08/05/2026, 13:13:07 UTC

Last enriched: 08/12/2026, 14:37:59 UTC

Last updated: 09/19/2026, 22:13:03 UTC

Views: 60

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses