bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2022-2989

7.1high

podman4.9.5 · 4.5.0in 4 of 4 releases

Reach podman · 4 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

v25.03.14.5.0
v26.01.04.9.5
v26.09.04.9.5
v26.10.0latest4.9.5
aarch64_minimal
x86_64
aarch64_minimal–
x86_64Open
aarch64_minimal–
x86_64ANot affected · auto
aarch64_minimal–
x86_64ANot affected · auto
aarch64_minimal–
x86_64ANot affected

Description · NVD

An incorrect handling of the supplementary groups in the Podman container engine might lead to the sensitive information disclosure or possible data modification if an attacker has direct access to the affected container where supplementary groups are used to set access permissions and is able to execute a binary code in that container.

Published 2022-09-13NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

References 2
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-17 · settles 3 of 4

Fable 5.1 · high confidence · 2026-11-06

CVE-2022-2989 is the 2022 supplementary-groups bug (same family as Moby CVE-2022-36109 and Buildah CVE-2022-2990): when a container runs as a non-root user the primary GID was not included in the supplementary group list passed to the OCI runtime, so group-based permission checks could be bypassed after a gid change.

The upstream fix (podman v4.2.0-rhel / v4.3.0, mirrored by Buildah's "run: add container gid to additional groups") adds the container user's GID to the OCI process additionalGids, and that hunk is present in the podman 4.9.5 sources in this tree (libpod/container_internal_common.go:474-479), as is the equivalent in the vendored Buildah.

Podman 4.9.5 is far newer than the fixed release; the NVD match for this version is an over-broad CPE range.

Podman is a product feature in Infix (containers are configured via infix-containers.yang / confd containers.c and run by crun), but since the code is fixed, reachability does not change the verdict.

Evidence 9
  1. generateSpec(): when c.config.User is set, SetProcessUID/SetProcessGID followed by g.AddProcessAdditionalGid(uint32(execUser.Gid)) — the CVE-2022-2989 fix adding the primary GID to the supplementary list

    output/build/podman-4.9.5/libpod/container_internal_common.go:474-479

  2. --group-add groups and the user's /etc/group memberships (execUser.Sgids, only in implicit user form) are added as additional GIDs, with user-namespace availability check

    output/build/podman-4.9.5/libpod/container_internal_common.go:489-543

  3. Vendored Buildah configureUIDGID() includes g.AddProcessAdditionalGid(user.GID) — the companion CVE-2022-2990 fix ('run: add container gid to additional groups', Buildah CHANGELOG line 553, v1.28.0)

    output/build/podman-4.9.5/vendor/github.com/containers/buildah/run_common.go:284-289

  4. GetExecUser only derives Sgids in implicit form; explicit uid:gid yields no /etc/group lookups, matching intended post-fix semantics

    output/build/podman-4.9.5/vendor/github.com/opencontainers/runc/libcontainer/user/user.go:372-425

  5. Upstream tests expect 'uid=8(mail) gid=21(ftp) groups=21(ftp)' for --user user:group, i.e. primary GID present in groups

    output/build/podman-4.9.5/test/e2e/run_test.go:1018-1030

  6. Only two Infix patches applied (Disable pull retry, syslog log driver); neither touches user/group handling

    output/build/podman-4.9.5/.applied_patches_list

  7. BR2_PACKAGE_PODMAN=y with btrfs/devicemapper/vfs drivers — podman is built into the target image

    output/.config:5248-5251

  8. Podman is a product feature driven by the infix-containers YANG model (operator-configurable containers), so the package is used, but with fixed code

    src/confd/src/containers.c:353 and src/confd/yang/confd/infix-containers.yang:164

  9. OCI runtime is crun, which applies exactly the additionalGids podman passes in the spec

    output/build/ (crun-1.18.2, conmon-2.1.8)

Version and patches

Affected: podman < 4.2.0-rhel backport / < 4.3.0 upstream (Red Hat bz#2121445 fixed via RHSA-2022:7457/7954 on podman 4.2.0). This tree has podman 4.9.5 (package/podman/podman.mk:7) containing the fix hunk at libpod/container_internal_common.go:478 plus the vendored Buildah fix. Buildroot/Infix patches: 0001-Disable-pull-retry, 0002-Add-log-driver-for-syslog — unrelated. NVD's CPE match against 4.9.5 is over-broad.

Recommendation

No action required; document as N/A (fix present in podman 4.9.5 source, libpod/container_internal_common.go:478). Optionally add CVE-2022-2989 to the package's IGNORE_CVES list to suppress future matches.

Open questions

The exact upstream podman commit hash was not available offline (no .git in the build dir); identification of the fix hunk is based on the matching Buildah commit title in the vendored CHANGELOG and the code shape of the known fix. The podman exec path (libpod/oci_conmon_exec_common.go:731-742) does not itself append the primary GID to AdditionalGids, but that matches current upstream and is not the hunk the CVE fix changed.

Members of Kernel Kit decide. Sign in if you are one.