portage-ng / portage / sys-cluster / libqb / 2.0.8-r1
portage-ng glsa
1 advisory reference sys-cluster/libqb · none place version 2.0.8-r1 in a vulnerable range
▸ GLSA 202107-03 libqb: Insecure temporary file this version unaffected high local 2021-07-03

An insecure temporary file usage has been reported in libqb possibly allowing local code execution.

Announced
2021-07-03
Revised
2021-07-03
Access
local
Bugs
#699860
Advisory
https://security.gentoo.org/glsa/202107-03

Affected packages

PackageArchVulnerableUnaffected
sys-cluster/libqb*< 1.0.5>= 1.0.5

Background

libqb is a library with the primary purpose of providing high-performance, reusable features for client-server architecture, such as logging, tracing, inter-process communication (IPC), and polling.

Description

It was discovered that libqb used predictable filenames (under /dev/shm and /tmp) without O_EXCL.

Impact

A local attacker could perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application linked against libqb.

Workaround

There is no known workaround at this time.

Resolution

All libqb users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-cluster/libqb-1.0.5"

References