dool: patch CVE-2026-56652

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-56652

(cherry picked from commit 53bbf2771b)

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Ankur Tyagi authored and Khem Raj committed 2026-10-11 21:45:40 -07:00
1 parent 0a807241ff
commit 0b890c4745
2 files changed
+36

No files matched your search

@@ -0,0 +1,35 @@
From d20ba041a0f4968fdbc2745827f9af676339924f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Majchrowicz?= <sectroyer@gmail.com>
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 <sectroyer@gmail.com>
(cherry picked from commit 259fe40c7fa519020ef7a3f8ef8d61586b72ecc3)
CVE: CVE-2026-56652
Upstream-Status: Backport [https://github.com/scottchiefbaker/dool/commit/259fe40c7fa519020ef7a3f8ef8d61586b72ecc3]
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
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");
@@ -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"