Skip to contentSkip to conversation

redis: ignore CVE-2025-46686

PATCH New Gyorgy Sarvari 1 participant 5 messages Dec 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 redis: ignore CVE-2025-46686

Details: https://nvd.nist.gov/vuln/detail/CVE-2025-46686

Upstream disputes that it is a security violation, and says that implementing a mitigation for this would negatively affect the rest of the application, so they elected to ignore it.

See Github advisory about the same vulnerability:
https://github.com/redis/redis/security/advisories/GHSA-2r7g-8hpc-rpq9

---
 meta-oe/recipes-extended/redis/redis_6.2.21.bb | 1 +
 meta-oe/recipes-extended/redis/redis_7.2.12.bb | 1 +
 2 files changed, 2 insertions(+)
meta-oe/recipes-extended/redis/redis_6.2.21.bb +1 -0
index 0466e34000..474aea7dc3 100644
@@ -28,6 +28,7 @@ CVE_STATUS[CVE-2025-21605] = "cpe-incorrect: the used version already contains t
 # deps/ directory and are therefore not affected by this issue.
 CVE_STATUS[CVE-2022-0543] = "not-applicable-config: Debian-specific packaging issue caused by loading system-wide Lua libraries; upstream builds use embedded Lua and are not affected"
 CVE_STATUS[CVE-2022-3734] = "not-applicable-config: only affects Windows"
+CVE_STATUS[CVE-2025-46686] = "disputed: upstream rejected because mitigating it would affect other functionality"
 
 inherit update-rc.d systemd useradd
 
meta-oe/recipes-extended/redis/redis_7.2.12.bb +1 -0
index 0989ed5e8d..8abf758930 100644
@@ -23,6 +23,7 @@ RPROVIDES:${PN} = "virtual-redis"
 
 CVE_STATUS[CVE-2025-21605] = "cpe-incorrect: the used version already contains the fix"
 CVE_STATUS[CVE-2025-27151] = "cpe-incorrect: the used version already contains the fix"
+CVE_STATUS[CVE-2025-46686] = "disputed: upstream rejected because mitigating it would affect other functionality"
 CVE_STATUS[CVE-2025-46817] = "cpe-incorrect: the used version already contains the fix"
 CVE_STATUS[CVE-2025-46818] = "cpe-incorrect: the used version already contains the fix"
 CVE_STATUS[CVE-2025-46819] = "cpe-incorrect: the used version already contains the fix"
#1 lore raw

PATCH 2/5 simple-mtpfs: update to latest revision

The application hasn't received updates lately, but there is a bugfix that is missing from the recipe.

Changelog:
On partial read/write, keep reading:
This avoids rsync errors and avoids data loss with cp, due to failing to copy the last byte of 0.1953125% of files.

---
 .../recipes-filesystems/simple-mtpfs/simple-mtpfs_0.4.0.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-filesystems/recipes-filesystems/simple-mtpfs/simple-mtpfs_0.4.0.bb +2 -1
index 05a1004b65..97c5940e15 100644
@@ -9,5 +9,6 @@ DEPENDS = "fuse libmtp autoconf-archive"
 inherit autotools pkgconfig
 
 SRC_URI = "git://github.com/phatina/simple-mtpfs.git;protocol=https;branch=master"
-SRCREV = "19e7bb9b608b0c0dce2ee6f56fac75901bc69529"
+SRCREV = "5dfd25c72caf83bc85fc636804f1456bc0f6c1c6"
 
+PV .= "+git"
#2 lore raw

PATCH 3/5 unionfs-fuse: upgarde 3.4 -> 3.7

In reply to Gyorgy Sarvari

License-Update: copyright year bump

Drop patch which became unneeded (CFLAGS are not overwritten anymore)

Selected shortlog (without readme and CI changes):
- Use fchmodat with AT_SYMLINK_NOFOLLOW if available
- Use utimensat on macOS
- tests: properly test for directory existence using os.path.isdir
- Enable commented test for rmdir
- Add more tests for renaming using cow
- Allow directory renaming when cow is disabled but it only exists in one branch
- Use existing function for checking if file exists
- Fix directory rename hiding files from lower branches
- remove deprecated "use_ino" option from examples and documentation
- CMake: Support CFLAGS= and -DCMAKE_C_FLAGS= from the outside
- set -D_FILE_OFFSET_BITS=64 unconditionally so that compilation does not fail on 32bit systems

---
 .../files/0001-support-cross-compiling.patch  | 31 -------------------
 ...nionfs-fuse_3.4.bb => unionfs-fuse_3.7.bb} |  8 ++---
 2 files changed, 3 insertions(+), 36 deletions(-)
 delete mode 100644 meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch
 rename meta-filesystems/recipes-filesystems/unionfs-fuse/{unionfs-fuse_3.4.bb => unionfs-fuse_3.7.bb} (65%)
meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch deleted +0 -31
deleted file mode 100644
index 9b4d0f6cae..0000000000
@@ -1,31 +0,0 @@
-From 6e794a36564a2639a07d8720260e33d7c9435aa4 Mon Sep 17 00:00:00 2001
-From: Alper Ak <[email protected]>
-Date: Fri, 10 Nov 2023 20:50:48 +0300
-Subject: [PATCH] support cross compiling
-
-Do not override OE CMAKE variables
-
-Signed-off-by: Hongxu Jia <[email protected]>
-Signed-off-by: Alper Ak <[email protected]>
-
-Upstream-Status: Pending
----
- src/CMakeLists.txt | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index f549496..ab71fb2 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -4,9 +4,9 @@ set(UNIONFS_SRCS unionfs.c opts.c debug.c findbranch.c readdir.c
-     fuse_ops.c)
- set(UNIONFSCTL_SRCS unionfsctl.c)
- 
--SET(CMAKE_C_FLAGS "-pipe -W -Wall -D_FORTIFY_SOURCE=2")
-+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -D_FORTIFY_SOURCE=2")
- SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
--SET(CMAKE_C_FLAGS_RELEASE "-O2")
-+SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
- SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG")
- 
- add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS})
meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_3.7.bb renamed from meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_3.4.bb +3 -5
similarity index 65%
rename from meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_3.4.bb
rename to meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_3.7.bb
index fc474e3238..5ba202b90c 100644
@@ -3,13 +3,11 @@ HOMEPAGE = "https://github.com/rpodgorny/unionfs-fuse"
 SECTION = "console/network"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://src/unionfs.c;beginline=3;endline=8;md5=30fa8de70fd8abab00b483a1b7943a32 \
-                    file://LICENSE;md5=7e5a37fce17307066eec6b23546da3b3 \
+                    file://LICENSE;md5=0e75c95b3e0e1c01489b39e7fadd3e2d \
 "
 
-SRC_URI = "git://github.com/rpodgorny/${BPN}.git;branch=master;protocol=https \
-           file://0001-support-cross-compiling.patch \
-           "
-SRCREV = "773f1853b043eeb64b7459f903a2c65bd096f9d9"
+SRC_URI = "git://github.com/rpodgorny/${BPN}.git;branch=master;protocol=https;tag=v${PV}"
+SRCREV = "3fcbd11f78b9a9e02ea0e861d741840fe45dc9c8"
 
 DEPENDS = "fuse3"
 RDEPENDS:${PN} = "bash"
#3 lore raw

PATCH 4/5 unionfs-fuse: add ptest support

In reply to Gyorgy Sarvari

It takes about a second to execute.

Added two patches:
- One adapts the testuite to ptest, to test the installed binary instead of testing the one from the build folder.
- Another that fixes a bug in unionfsctl, which made the test fail. This patch is submitted upstream.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-26T19:03
BEGIN: /usr/lib/unionfs-fuse/ptest
ptestuser:!:20448:0:99999:7:::
PASS: test_all.IOCTL_TestCase.test_debug
PASS: test_all.IOCTL_TestCase.test_wrong_args
PASS: test_all.UnionFS_Help.test_help
[...many lines...]
PASS: test_all.UnionFS_RW_RW_PreserveBranch_TestCase.test_permissions_after_creating_directories
PASS: test_all.UnionFS_Sync.test_sync
PASS: test_all.UnionFS_Version.test_help

============================================================================
Testsuite summary
DURATION: 0
END: /usr/lib/unionfs-fuse/ptest
2025-12-26T19:03
STOP: ptest-runner
TOTAL: 1 FAIL: 0

---
 .../ptest-packagelists-meta-filesystems.inc   |  1 +
 .../files/0001-adapt-tests-to-ptest.patch     | 43 ++++++++++++++
 .../files/0001-fix-debug-ioctl-call.patch     | 58 +++++++++++++++++++
 .../unionfs-fuse/files/run-ptest              |  9 +++
 .../unionfs-fuse/unionfs-fuse_3.7.bb          | 13 ++++-
 5 files changed, 122 insertions(+), 2 deletions(-)
 create mode 100644 meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-adapt-tests-to-ptest.patch
 create mode 100644 meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-fix-debug-ioctl-call.patch
 create mode 100644 meta-filesystems/recipes-filesystems/unionfs-fuse/files/run-ptest
meta-filesystems/conf/include/ptest-packagelists-meta-filesystems.inc +1 -0
index 875a2f139a..3dc6986d6f 100644
@@ -8,6 +8,7 @@
 
 PTESTS_FAST_META_FILESYSTEMS = "\
     e2tools \
+    unionfs-fuse \
 "
 
 PTESTS_SLOW_META_FILESYSTEMS = "\
meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-adapt-tests-to-ptest.patch new file +43 -0

43 lines not on this page · raw message

meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-fix-debug-ioctl-call.patch new file +58 -0

58 lines not on this page · raw message

meta-filesystems/recipes-filesystems/unionfs-fuse/files/run-ptest new file +9 -0
new file mode 100644
index 0000000000..a92ef0a8f7
@@ -0,0 +1,9 @@
+#!/bin/sh
+# not all tests can run with root, so create a test user
+# if it doesn't exist yet
+
+if ! grep ptestuser /etc/shadow; then
+    useradd ptestuser
+fi
+
+su ptestuser -c "python3 -m putao.unittest"
meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_3.7.bb +11 -2
index 5ba202b90c..b5c5bb847c 100644
@@ -6,11 +6,20 @@ LIC_FILES_CHKSUM = "file://src/unionfs.c;beginline=3;endline=8;md5=30fa8de70fd8a
                     file://LICENSE;md5=0e75c95b3e0e1c01489b39e7fadd3e2d \
 "
 
-SRC_URI = "git://github.com/rpodgorny/${BPN}.git;branch=master;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/rpodgorny/${BPN}.git;branch=master;protocol=https;tag=v${PV} \
+           file://run-ptest \
+           file://0001-fix-debug-ioctl-call.patch \
+           file://0001-adapt-tests-to-ptest.patch \
+"
+
 SRCREV = "3fcbd11f78b9a9e02ea0e861d741840fe45dc9c8"
 
 DEPENDS = "fuse3"
 RDEPENDS:${PN} = "bash"
+RDEPENDS:${PN}-ptest += "python3-core python3-unittest python3-unittest-automake-output"
 
+inherit cmake pkgconfig ptest
 
-inherit cmake pkgconfig
+do_install_ptest(){
+    install ${S}/test_all.py ${D}${PTEST_PATH}
+}
#4 lore raw

PATCH 5/5 softhsm: fix SRC_URI branch

In reply to Gyorgy Sarvari

The "develop" branch doesn't exist anymore, the used revision can be found on the "main" branch.

---
 meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb +1 -1
index 78766e0fe9..30b4fc71d8 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ef3f77a3507c3d91e75b9f2bdaee4210"
 
 DEPENDS = "sqlite3"
 
-SRC_URI = "git://github.com/softhsm/SoftHSMv2.git;protocol=https;branch=develop;tag=${PV} \
+SRC_URI = "git://github.com/softhsm/SoftHSMv2.git;protocol=https;branch=main;tag=${PV} \
            file://0001-avoid-unnecessary-check-for-sqlite3-binary.patch \
            file://0002-Prevent-accessing-of-global-c-objects-once-they-are-.patch \
 "