VDB
Sign up
MEDIUM6.2

GHSA-f2r5-5m7w-p5cx

opentelemetry-ebpf-profiler: Unprivileged process can trigger a denial of service on the ebpf-profiler agent

Quick fix

GHSA-f2r5-5m7w-p5cx — go.opentelemetry.io/ebpf-profiler: upgrade to the fixed version with the command below.

go get go.opentelemetry.io/ebpf-profiler@v0.0.202622

Details

### Summary

An unprivileged process can easily trigger the `processPIDEvents` goroutine to be blocked indefinitely, preventing the goroutine from analyzing any new ELF file. The goroutine stays blocked in the `openat2` syscall forever and the profiler can no longer work properly, it is a denial of service.

### Impact

The impact is limited to denial-of-service on the ebpf-profiler agent: - There has to be a malicious workload albeit unprivileged. - No exfiltration of data. No loss of data.

### Fix

Fixed in https://github.com/open-telemetry/opentelemetry-ebpf-profiler/commit/234b685cab31c2cb2f79e966caeab168bcc489e4.

Fix is part of [v.0.0.202622](https://github.com/open-telemetry/opentelemetry-ebpf-profiler/releases/tag/v0.0.202622).

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/go.opentelemetry.io/ebpf-profiler
Introduced in: 0.0.202527Fixed in: 0.0.202622
Fixgo get go.opentelemetry.io/ebpf-profiler@v0.0.202622

References