diff --git a/meta-oe/recipes-support/dool/dool/CVE-2026-56652.patch b/meta-oe/recipes-support/dool/dool/CVE-2026-56652.patch new file mode 100644 index 0000000000..c6806ae0c5 --- /dev/null +++ b/meta-oe/recipes-support/dool/dool/CVE-2026-56652.patch @@ -0,0 +1,35 @@ +From d20ba041a0f4968fdbc2745827f9af676339924f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20Majchrowicz?= +Date: Thu, 18 Jun 2026 19:20:30 +0200 +Subject: [PATCH] Refuse symlinked devel log files +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: MichaƂ Majchrowicz +(cherry picked from commit 259fe40c7fa519020ef7a3f8ef8d61586b72ecc3) + +CVE: CVE-2026-56652 +Upstream-Status: Backport [https://github.com/scottchiefbaker/dool/commit/259fe40c7fa519020ef7a3f8ef8d61586b72ecc3] +Signed-off-by: Ankur Tyagi +--- + dool | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/dool b/dool +index fc1015d..2df407d 100755 +--- a/dool ++++ b/dool +@@ -2132,7 +2132,11 @@ def devel_log(msg): + if not DEBUG_FH: + log_file = "/tmp/dool-devel.log" + print("Writing devel log: '%s'" % log_file) +- DEBUG_FH = open(log_file, "w", 1) ++ flags = os.O_WRONLY | os.O_CREAT | os.O_TRUNC ++ if hasattr(os, 'O_NOFOLLOW'): ++ flags |= os.O_NOFOLLOW ++ fd = os.open(log_file, flags, 0o600) ++ DEBUG_FH = os.fdopen(fd, "w", 1) + + # Print out the header line for the devel log + DEBUG_FH.write("|Time |Since Prev |Description|\n"); diff --git a/meta-oe/recipes-support/dool/dool_1.3.8.bb b/meta-oe/recipes-support/dool/dool_1.3.8.bb index 5118eadad6..06484c5475 100644 --- a/meta-oe/recipes-support/dool/dool_1.3.8.bb +++ b/meta-oe/recipes-support/dool/dool_1.3.8.bb @@ -11,6 +11,7 @@ RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell pyth SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=next;protocol=https;tag=v${PV} \ file://CVE-2026-56651.patch \ + file://CVE-2026-56652.patch \ " SRCREV = "b74503e2dfbca8ef01c284d40aa77dc82be308b9"