Inspektor Gadget CVE-2026-53941
MEDIUMSeverity by source
Local vector since container execution on the host is required; PR:N because no privileges are needed within the container; S:C because impact crosses to the host Docker runtime; A:H only, no C or I impact.
Primary rating from SUSE.
Lifecycle Timeline
2DescriptionCVE.org
Summary
An unprivileged container can block all other containers from starting on the same host by placing a crafted /etc/ld.so.cache file in its filesystem. When Inspektor Gadget attaches any uprobe-based gadget, it parses this file in the container startup path. A malicious cache causes ~53 seconds of CPU burn, during which Docker cannot start any other container. No special capabilities are required.
Severity
To be assessed - Availability impact, no confidentiality or integrity impact.
Affected Versions
All versions of Inspektor Gadget that support uprobe-based gadgets (trace_malloc, trace_open, trace_ssl, trace_grpc, etc.).
Description
When Inspektor Gadget attaches uprobe-based gadgets to containers, it resolves library paths by parsing the container's /etc/ld.so.cache file (pkg/uprobetracer/ldcache_parser.go). This file is fully controlled by the container.
The parser has three vulnerabilities:
- Quadratic string building (
pkg/uprobetracer/bytes.go:36-44): ThereadStringFromBytesfunction concatenates one byte at a time (res += string(data[i])), which is O(n²) in Go due to string immutability. With a 16MB cache file containing large regions without null terminators, this causes massive CPU and memory churn. - Insufficient entry count validation (
pkg/uprobetracer/ldcache_parser.go:120): TheEntryCountfield is read directly from the untrusted file. While a per-entry bounds check prevents out-of-bounds access, the loop still iterates up to(fileSize - headerSize) / entrySize ≈ 700,000times, callingreadStringFromByteson each iteration. - Integer overflow in format detection (
pkg/uprobetracer/ldcache_parser.go:174): Thecache1Lencomputation uses uint32 arithmetic (ldCache1Size + cache1.EntryCount*ldCache1EntrySize). With a craftedEntryCount, this overflows and produces a small value, causing the parser to misidentify the cache format.
Combined, these cause ~53 seconds of CPU burn per container attachment when a crafted 16MB /etc/ld.so.cache is present.
Impact
- Container runtime DoS: IG uses fanotify hooks (
pkg/container-hook) to pause container startup until uprobe attachment completes. While IG is blocked processing the malicious cache, this pause is held, and Docker serializes container starts - meaning no other container can start on the host until IG finishes. This effectively causes a denial of service on the entire container runtime, not just on IG itself. - Container startup delay: When any uprobe-based gadget is running (trace_malloc, trace_ssl, etc.), starting a container with a crafted ld.so.cache delays startup by ~1 minute.
- Monitoring degradation: The IG daemon is blocked processing the malicious cache, potentially missing events from other containers.
- Amplification: Multiple containers with crafted caches can be started simultaneously to amplify the effect.
- No special privileges required: Any container can include a crafted
/etc/ld.so.cachein its image, mount one via a volume, or overwrite it at runtime before IG starts a uprobe gadget. In this last case, IG inspects all already-running containers when the gadget starts - this still burns CPU but does not block other containers from starting (since the fanotify pause only applies to new container starts).
Root Cause Analysis
In pkg/uprobetracer/ldcache_parser.go, the function readCacheFormat2 is called with the full file content:
for i := uint32(0); i < ldCache.EntryCount; i++ {
entryOffset := ldEntriesOffset + i*ldCache2EntrySize
if uint32(len(data)) <= entryOffset+ldCache2EntrySize {
return nil // bounds check stops iteration
}
// ... reads entry ...
key := readStringFromBytes(data, keyOffset) // O(n²) per call
value := readStringFromBytes(data, valueOffset) // O(n²) per call
}The per-entry bounds check correctly prevents out-of-bounds access, but:
- The loop iterates ~700K times (limited by file size, not EntryCount)
- Each
readStringFromBytescall uses quadratic string concatenation
In pkg/uprobetracer/bytes.go:
func readStringFromBytes(data []byte, startPos uint32) string {
res := ""
for i := startPos; i < uint32(len(data)); i++ {
if data[i] == 0 {
return res
}
res += string(data[i]) // O(n²) - allocates new string each iteration
}
return ""
}Note on Slice Bounds Checks
The code also performs slice accesses without proper bounds checks (e.g., data[:len(cache2Header)] when data may be shorter than 20 bytes, and ldCacheFile[:len(cache1Header)] when the file may be shorter than 11 bytes).
In practice, a malicious container cannot currently trigger a panic from these missing checks. This is because Go's io.ReadAll (used to read the file) always returns slices with cap >= 512 due to its initial buffer allocation (make([]byte, 0, 512) in Go's standard library). In Go, s[:n] only panics when n > cap(s), not when n > len(s). Since both header lengths (11 and 20) are well below 512, the slice expressions succeed - they simply read zero bytes beyond len, which don't match any valid header magic.
However, this relies on an undocumented implementation detail of io.ReadAll which could change in future Go versions. The bounds checks are still necessary for correctness and defense in depth.
AnalysisAI
Uprobe-based gadget attachment in Inspektor Gadget (versions >= 0.27.0, < 0.53.1) can be weaponized by any unprivileged container to cause approximately 53 seconds of CPU burn in the IG daemon by supplying a crafted /etc/ld.so.cache file - no container capabilities required. Because IG uses fanotify hooks to pause container startup until uprobe attachment completes, and Docker serializes container starts behind that pause, a single crafted container effectively blocks all other containers on the host from launching for the duration of processing. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Exploitation requires that at least one uprobe-based Inspektor Gadget gadget (trace_malloc, trace_ssl, trace_grpc, trace_open, or equivalent) is actively running on the target host at the moment the malicious container starts. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | No official CVSS score has been published for this CVE; all metric assessments here are independently derived. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | Full exploit scenario with step-by-step reproduction available after sign-in. |
| Remediation | Upgrade Inspektor Gadget to v0.53.1, which is confirmed as the patched release per the upstream advisory (https://github.com/inspektor-gadget/inspektor-gadget/releases/tag/v0.53.1 and GHSA-vjhx-2cqw-3q6q). … Detailed patch versions, workarounds, and compensating controls in full report. |
Threat intelligence, references, and detailed analysis are available after sign-in.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to version 25.2.169 and Application prior to version 2
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: ModerateShare
External POC / Exploit Code
Leaving vuln.today
GHSA-vjhx-2cqw-3q6q