podman: Fix CVE-2026-55686
PATCH 1/1 podman: Fix CVE-2026-55686
From: Deepak Rathore <[email protected]>
- This patch applies the upstream v5.7.1 backport for CVE-2026-55686.
- The upstream fix commit is referenced in [1],the public CVE advisory is referenced in [2], and the dependent upstream workdir test commit is referenced in [3].
- The dependent patch is carried because the CVE fix extends that upstream symlinked-workdir regression test.
[1] https://github.com/containers/podman/commit/7ce2e00ab140c11a68301f0b161f51984131a858
[2] https://github.com/advisories/GHSA-q6r4-3wmg-fwcq
[3] https://github.com/podman-container-tools/podman/commit/e576e002e9d95ae6b37265d9e0b3deaa4c43d73f
Signed-off-by Deepak Rathore <[email protected]>
--- .../podman/CVE-2026-55686-dependent.patch | 53 +++++ .../podman/podman/CVE-2026-55686.patch | 190 ++++++++++++++++++ recipes-containers/podman/podman_git.bb | 2 + 3 files changed, 245 insertions(+) create mode 100644 recipes-containers/podman/podman/CVE-2026-55686-dependent.patch create mode 100644 recipes-containers/podman/podman/CVE-2026-55686.patch
recipes-containers/podman/podman/CVE-2026-55686-dependent.patch new file +53 -0
@@ -0,0 +1,53 @@ +From 757c798d8fd8ee2b05a7f0b5df753b37c7169a49 Mon Sep 17 00:00:00 2001 +From: Paul Holzinger <[email protected]> +Date: Wed, 3 Dec 2025 16:57:15 +0100 +Subject: [PATCH 1/2] libpod: fix workdir MkdirAll() all check + +MkdirAll can fail with EEXIST when the path is a symlink and the target +doesn't exist. As such we should ignore the error. + +Note there is something fundemantal wrong here with the path access as +it is following the symlink to the host, however it is only for a +stat() so it is not an security issue here. + +Fixes: 637c264e2e ("fix issues found by nilness") + +CVE: CVE-2026-55686 +Upstream-Status: Backport [https://github.com/podman-container-tools/podman/commit/e576e002e9d95ae6b37265d9e0b3deaa4c43d73f] + +Backport Changes: +- Omitted the libpod/container_internal_common.go hunk because + Scarthgap already has equivalent os.IsExist(err) handling in the + resolveWorkDir() os.MkdirAll() error path. +- Kept the upstream symlinked-workdir e2e test because the CVE fix + commit extends this test upstream. + +Signed-off-by: Paul Holzinger <[email protected]> +(cherry picked from commit e576e002e9d95ae6b37265d9e0b3deaa4c43d73f) +Signed-off-by: Deepak Rathore <[email protected]> +--- + test/e2e/run_working_dir_test.go | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/test/e2e/run_working_dir_test.go b/test/e2e/run_working_dir_test.go +index 9f06df9313..53040cd98c 100644 +--- a/test/e2e/run_working_dir_test.go ++++ b/test/e2e/run_working_dir_test.go +@@ -56,4 +56,14 @@ WORKDIR /etc/foobar`, ALPINE) + Expect(session).Should(ExitCleanly()) + Expect(session.OutputToString()).To(Equal("/home/foobar")) + }) ++ ++ It("podman run on an image with a symlinked workdir", func() { ++ dockerfile := fmt.Sprintf(`FROM %s ++RUN mkdir /A && ln -s /A /B ++WORKDIR /B`, ALPINE) ++ podmanTest.BuildImage(dockerfile, "test", "false") ++ ++ session := podmanTest.PodmanExitCleanly("run", "test", "pwd") ++ Expect(session.OutputToString()).To(Equal("/A")) ++ }) + }) +-- +2.35.6 +
recipes-containers/podman/podman/CVE-2026-55686.patch new file +190 -0
190 lines not on this page · raw message
recipes-containers/podman/podman_git.bb +2 -0
@@ -24,6 +24,8 @@ SRC_URI = " \ file://0001-Use-securejoin.SecureJoin-when-forming-userns-paths.patch;patchdir=src/import/vendor/github.com/containers/storage \ file://CVE-2025-6032.patch;patchdir=src/import \ file://CVE-2024-9341.patch;patchdir=src/import \ + file://CVE-2026-55686-dependent.patch;patchdir=src/import \ + file://CVE-2026-55686.patch;patchdir=src/import \ " LICENSE = "Apache-2.0"
Signature · 1 line
2.35.6
merged
Bruce