Assorted fixes
cover Assorted fixes
This patch series rolls up contributed patches from the past few weeks, as well as some other fixes. They are queued on the master-next branch if you would like to check them out to test yourself. I intend to merge these to master branch at end of day tomorrow unless there are objections.
For folks looking for scarthgap updates, I'm working up a series for that next, hopefully will have it out early next week.
Scott
Changes:
Clayton Casciato (1):
suricata: update to 7.0.12
Haixiao Yan (2):
fail2ban: Adapt test output to Automake format for ptest compatibility
fail2ban: replace fail2ban-python shebang with python3
Scott Murray (2):
Update kas configuration for poky obsolescence
ima-evm-utils: remove unnecessary FILESEXTRAPATHS tweak
hongxu (1):
ecryptfs-utils: Add CVE tag for ecryptfs-utils-CVE-2016-6224.patch
...ao.unittest.TestRunner-for-ptest-out.patch | 43 +
.../fail2ban/python3-fail2ban_git.bb | 12 +-
kas/kas-security-base.yml | 15 +-
.../ima-evm-utils/ima-evm-utils_1.5.bb | 2 -
...kefile-from-using-its-own-rust-steps.patch | 40 +
.../suricata/files/CVE-2024-37151.patch | 53 -
.../suricata/files/CVE-2024-38534.patch | 44 -
.../suricata/files/CVE-2024-38535.patch | 57 -
.../suricata/files/CVE-2024-38535_pre.patch | 292 ----
.../suricata/files/CVE-2024-38536.patch | 40 -
recipes-ids/suricata/files/fixup.patch | 32 -
.../{libhtp_0.5.50.bb => libhtp_0.5.52.bb} | 2 +-
recipes-ids/suricata/suricata-crates.inc | 1509 ++++++++---------
.../{suricata_7.0.0.bb => suricata_7.0.12.bb} | 9 +-
.../files/ecryptfs-utils-CVE-2016-6224.patch | 1 +
15 files changed, 847 insertions(+), 1304 deletions(-)
create mode 100644 dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-fail2ban-use-putao.unittest.TestRunner-for-ptest-out.patch
create mode 100644 recipes-ids/suricata/files/0001-Skip-pkg-Makefile-from-using-its-own-rust-steps.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-37151.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38534.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535_pre.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38536.patch
delete mode 100644 recipes-ids/suricata/files/fixup.patch
rename recipes-ids/suricata/{libhtp_0.5.50.bb => libhtp_0.5.52.bb} (90%)
rename recipes-ids/suricata/{suricata_7.0.0.bb => suricata_7.0.12.bb} (95%)Signature · 1 line
2.51.0
PATCH 1/6 Update kas configuration for poky obsolescence
Replace poky repository configuration with separate bitbake, openembedded-core, and meta-poky repository configurations.
--- kas/kas-security-base.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
kas/kas-security-base.yml +13 -2
@@ -11,11 +11,22 @@ repos: meta-integrity: meta-hardening: - poky: - url: https://git.yoctoproject.org/git/poky + bitbake: + url: https://git.openembedded.org/bitbake + refspec: master + layers: + .: disabled + + openembedded-core: + url: https://git.openembedded.org/openembedded-core refspec: master layers: meta: + + poky: + url: https://git.yoctoproject.org/git/meta-yocto + refspec: master + layers: meta-poky: meta-yocto-bsp:
Signature · 1 line
2.51.0
PATCH 2/6 fail2ban: Adapt test output to Automake format for ptest compatibility
In reply to Scott MurrayFrom: Haixiao Yan <[email protected]>
Convert fail2ban-testcases output to follow Automake-compatible format (PASS:/FAIL:) so that ptest-runner can correctly parse and report test results.
root@intel-x86-64:~# ptest-runner python3-fail2ban -t 300 START: ptest-runner 2025-09-22T07:57 BEGIN: /usr/lib64/python3-fail2ban/ptest Fail2ban 1.1.1.dev1 test suite. Python 3.12.11 (main, Jun 3 2025, 15:41:47) [GCC 13.4.0]. Please wait... I: Skipping smtp tests: No module named 'smtpd' I: Skipping SSL smtp tests: No module named 'aiosmtpd' PASS: fail2ban.tests.servertestcase.Transmitter.testAction PASS: fail2ban.tests.servertestcase.Transmitter.testAddJail PASS: fail2ban.tests.servertestcase.Transmitter.testDatabase PASS: fail2ban.tests.servertestcase.Transmitter.testDatePattern PASS: fail2ban.tests.servertestcase.Transmitter.testGetNOK PASS: fail2ban.tests.servertestcase.Transmitter.testJailAttemptIP PASS: fail2ban.tests.servertestcase.Transmitter.testJailBanIP ... PASS: fail2ban.tests.servertestcase.TransmitterLogging.testBanTimeIncr PASS: fail2ban.tests.servertestcase.TransmitterLogging.testFlushLogs PASS: fail2ban.tests.servertestcase.TransmitterLogging.testLogLevel PASS: fail2ban.tests.servertestcase.TransmitterLogging.testLogTarget PASS: fail2ban.tests.servertestcase.TransmitterLogging.testLogTargetSYSLOG PASS: fail2ban.tests.servertestcase.TransmitterLogging.testSyslogSocket PASS: fail2ban.tests.servertestcase.TransmitterLogging.testSyslogSocketNOK
============================================================================
Testsuite summary
DURATION: 48
END: /usr/lib64/python3-fail2ban/ptest
2025-09-22T07:58
STOP: ptest-runner
TOTAL: 1 FAIL: 0
--- ...ao.unittest.TestRunner-for-ptest-out.patch | 43 +++++++++++++++++++ .../fail2ban/python3-fail2ban_git.bb | 9 +++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-fail2ban-use-putao.unittest.TestRunner-for-ptest-out.patch
dynamic-layers/meta-python/recipes-security/fail2ban/files/0001-fail2ban-use-putao.unittest.TestRunner-for-ptest-out.patch new file +43 -0
@@ -0,0 +1,43 @@ +From 7b42974b5bf20d9db8e788e9d6817004556d660d Mon Sep 17 00:00:00 2001 +From: Haixiao Yan <[email protected]> +Date: Fri, 19 Sep 2025 15:03:56 +0800 +Subject: [PATCH] fail2ban: use putao.unittest.TestRunner for ptest output + +Switch the test runner from unittest's default TextTestRunner to +putao.unittest.TestRunner (provided by unittest-automake-output) so +that results are reported in Automake-compatible PASS/FAIL format. +This enables ptest-runner to correctly parse and summarize individual +test results. + +Upstream-Status: Pending + +Signed-off-by: Haixiao Yan <[email protected]> +--- + bin/fail2ban-testcases | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/bin/fail2ban-testcases b/bin/fail2ban-testcases +index 48aae4b5ffdc..20db4a01a3d6 100755 +--- a/bin/fail2ban-testcases ++++ b/bin/fail2ban-testcases +@@ -28,7 +28,7 @@ import logging + import os + import sys + import time +-import unittest ++import putao.unittest + + # Check if local fail2ban module exists, and use if it exists by + # modifying the path. This is done so that tests can be used in dev +@@ -63,7 +63,7 @@ tests = gatherTests(regexps, opts) + # + # Run the tests + # +-testRunner = unittest.TextTestRunner(verbosity=verbosity) ++testRunner = putao.unittest.TestRunner() + + tests_results = testRunner.run(tests) + +-- +2.34.1 +
dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_git.bb +8 -1
@@ -13,6 +13,7 @@ DEPENDS = "python3-native" SRCREV = "2856092709470250dc299931bc748f112590059f" SRC_URI = "git://github.com/fail2ban/fail2ban.git;branch=master;protocol=https \ + file://0001-fail2ban-use-putao.unittest.TestRunner-for-ptest-out.patch \ file://initd \ file://run-ptest \ "
@@ -67,6 +68,12 @@ INSANE_SKIP:${PN}:append = "already-stripped" RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} nftables python3-core python3-pyinotify" RDEPENDS:${PN} += "python3-sqlite3" RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json" -RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" +RDEPENDS:${PN}-ptest = " \ + python3-core \ + python3-io \ + python3-modules \ + python3-fail2ban \ + python3-unittest-automake-output \ + " RRECOMMENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'python3-systemd', '', d)}"
Signature · 1 line
2.51.0
PATCH 3/6 ecryptfs-utils: Add CVE tag for ecryptfs-utils-CVE-2016-6224.patch
In reply to Scott MurrayFrom: hongxu <[email protected]>
Follow Yocto policy to add CVE tag to CVE patch
--- .../ecryptfs-utils/files/ecryptfs-utils-CVE-2016-6224.patch | 1 + 1 file changed, 1 insertion(+)
recipes-security/ecryptfs-utils/files/ecryptfs-utils-CVE-2016-6224.patch +1 -0
@@ -14,6 +14,7 @@ the patch comes from: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-6224 https://bazaar.launchpad.net/~ecryptfs/ecryptfs/trunk/revision/882 +CVE: CVE-2016-6224 Upstream-Status: Backport Signed-off-by: Li Zhou <[email protected]>
Signature · 1 line
2.51.0
PATCH 4/6 fail2ban: replace fail2ban-python shebang with python3
In reply to Scott MurrayFrom: Haixiao Yan <[email protected]>
In Yocto, there is only one Python interpreter (python3), and the auto-generated "fail2ban-python" symlink is not used. To ensure all installed scripts can run correctly, replace the shebang line from "#!/usr/bin/env fail2ban-python" to "#!/usr/bin/env python3" during installation.
--- .../recipes-security/fail2ban/python3-fail2ban_git.bb | 3 +++ 1 file changed, 3 insertions(+)
dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_git.bb +3 -0
@@ -40,6 +40,7 @@ do_install:append () { chown -R root:root ${D}/${bindir} rm -rf ${D}/run + find ${D}${sysconfdir} -type f -exec sed -i '1s/env fail2ban-python/env python3/' {} + } do_install_ptest:append () {
@@ -57,6 +58,8 @@ do_install_ptest:append () { install -m 0644 ${S}/README.md ${D}${PTEST_PATH} sed -i -e 's|^logpath = README.md|logpath = ${PTEST_PATH}/README.md|g' \ ${D}${PYTHON_SITEPACKAGES_DIR}/fail2ban/tests/config/jail.conf + find ${D}${PYTHON_SITEPACKAGES_DIR} -type f -exec sed -i \ + '1s/env fail2ban-python/env python3/' {} + } INITSCRIPT_PACKAGES = "${PN}"
Signature · 1 line
2.51.0
PATCH 5/6 suricata: update to 7.0.12
In reply to Scott MurrayFrom: Clayton Casciato <[email protected]>
Also update libhtp to required version 0.5.52.
See suricata release notes for more details about changes and CVEs fixed:
https://suricata.io/2024/02/08/suricata-7-0-3-and-6-0-16-released/
https://suricata.io/2024/03/19/suricata-7-0-4-and-6-0-17-released/
https://suricata.io/2024/04/23/suricata-7-0-5-and-6-0-19-released/
https://suricata.io/2024/06/27/suricata-7-0-6-and-6-0-20-released/
https://suricata.io/2024/10/01/suricata-7-0-7-released/
https://suricata.io/2024/12/12/suricata-7-0-8-released/
https://suricata.io/2025/03/18/suricata-7-0-9-released/
https://suricata.io/2025/07/08/suricata-7-0-11-released/
https://suricata.io/2025/09/16/suricata-8-0-1-and-7-0-12-released/
---
...kefile-from-using-its-own-rust-steps.patch | 40 +
.../suricata/files/CVE-2024-37151.patch | 53 -
.../suricata/files/CVE-2024-38534.patch | 44 -
.../suricata/files/CVE-2024-38535.patch | 57 -
.../suricata/files/CVE-2024-38535_pre.patch | 292 ----
.../suricata/files/CVE-2024-38536.patch | 40 -
recipes-ids/suricata/files/fixup.patch | 32 -
.../{libhtp_0.5.50.bb => libhtp_0.5.52.bb} | 2 +-
recipes-ids/suricata/suricata-crates.inc | 1509 ++++++++---------
.../{suricata_7.0.0.bb => suricata_7.0.12.bb} | 9 +-
10 files changed, 779 insertions(+), 1299 deletions(-)
create mode 100644 recipes-ids/suricata/files/0001-Skip-pkg-Makefile-from-using-its-own-rust-steps.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-37151.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38534.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38535_pre.patch
delete mode 100644 recipes-ids/suricata/files/CVE-2024-38536.patch
delete mode 100644 recipes-ids/suricata/files/fixup.patch
rename recipes-ids/suricata/{libhtp_0.5.50.bb => libhtp_0.5.52.bb} (90%)
rename recipes-ids/suricata/{suricata_7.0.0.bb => suricata_7.0.12.bb} (95%)recipes-ids/suricata/files/0001-Skip-pkg-Makefile-from-using-its-own-rust-steps.patch new file +40 -0
@@ -0,0 +1,40 @@ +From a59708a9300df8116867ac77f7829f7fd647325e Mon Sep 17 00:00:00 2001 +From: Clayton Casciato <[email protected]> +Date: Mon, 3 Nov 2025 10:30:26 -0700 +Subject: [PATCH] Skip pkg Makefile from using its own rust steps + +Upstream-Status: Inappropriate [OE Specific] + +Signed-off-by: Armin Kuster <[email protected]> +Signed-off-by: Clayton Casciato <[email protected]> +--- + Makefile.am | 2 +- + Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index d0d3d09..a572912 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -10,7 +10,7 @@ EXTRA_DIST = ChangeLog COPYING LICENSE suricata.yaml.in \ + scripts/generate-images.sh \ + scripts/docs-almalinux9-minimal-build.sh \ + scripts/docs-ubuntu-debian-minimal-build.sh +-SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \ ++SUBDIRS = $(HTP_DIR) src qa rules doc contrib etc python ebpf \ + $(SURICATA_UPDATE_DIR) + + CLEANFILES = stamp-h[0-9]* +diff --git a/Makefile.in b/Makefile.in +index 7a89353..3864613 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -428,7 +428,7 @@ EXTRA_DIST = ChangeLog COPYING LICENSE suricata.yaml.in \ + scripts/docs-almalinux9-minimal-build.sh \ + scripts/docs-ubuntu-debian-minimal-build.sh + +-SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \ ++SUBDIRS = $(HTP_DIR) src qa rules doc contrib etc python ebpf \ + $(SURICATA_UPDATE_DIR) + + CLEANFILES = stamp-h[0-9]*
recipes-ids/suricata/files/CVE-2024-37151.patch deleted +0 -53
53 lines not on this page · raw message
recipes-ids/suricata/files/CVE-2024-38534.patch deleted +0 -44
44 lines not on this page · raw message
recipes-ids/suricata/files/CVE-2024-38535.patch deleted +0 -57
57 lines not on this page · raw message
recipes-ids/suricata/files/CVE-2024-38535_pre.patch deleted +0 -292
292 lines not on this page · raw message
recipes-ids/suricata/files/CVE-2024-38536.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 4026bca7f04c419dd3f3ba17a1af17bbcbcf18bc Mon Sep 17 00:00:00 2001 -From: Philippe Antoine <[email protected]> -Date: Fri, 17 May 2024 09:39:52 +0200 -Subject: [PATCH 4/4] http: fix nul deref on memcap reached - -HttpRangeOpenFileAux may return NULL in different cases, including -when memcap is reached. -But is only caller did not check it before calling HttpRangeAppendData -which would dereference the NULL value. - -Ticket: 7029 -(cherry picked from commit fd262df457f67f2174752dd6505ba2ed5911fd96) - -Upstream-Status: Backport from [https://github.com/OISF/suricata/commit/2bd3bd0e318f19008e9fe068ab17277c530ffb92] -CVE: CVE-2024-38536 -Signed-off-by: Siddharth Doshi <[email protected]> ---- - src/app-layer-htp-range.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/app-layer-htp-range.c b/src/app-layer-htp-range.c -index 3cdde35..f0d75a9 100644 ---- a/src/app-layer-htp-range.c -+++ b/src/app-layer-htp-range.c -@@ -351,8 +351,10 @@ static HttpRangeContainerBlock *HttpRangeOpenFile(HttpRangeContainerFile *c, uin - { - HttpRangeContainerBlock *r = - HttpRangeOpenFileAux(c, start, end, total, sbcfg, name, name_len, flags); -- if (HttpRangeAppendData(sbcfg, r, data, len) < 0) { -- SCLogDebug("Failed to append data while opening"); -+ if (r) { -+ if (HttpRangeAppendData(sbcfg, r, data, len) < 0) { -+ SCLogDebug("Failed to append data while opening"); -+ } - } - return r; - } --- -2.44.0 -
recipes-ids/suricata/files/fixup.patch deleted +0 -32
@@ -1,32 +0,0 @@ -Skip pkg Makefile from using its own rust steps - -Upstream-Status: Inappropriate [OE Specific] - -Signed-off-by: Armin Kuster <[email protected]> - -Index: suricata-7.0.0/Makefile.in -=================================================================== ---- suricata-7.0.0.orig/Makefile.in -+++ suricata-7.0.0/Makefile.in -@@ -424,7 +424,7 @@ EXTRA_DIST = ChangeLog COPYING LICENSE s - acsite.m4 \ - scripts/generate-images.sh - --SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \ -+SUBDIRS = $(HTP_DIR) src qa rules doc contrib etc python ebpf \ - $(SURICATA_UPDATE_DIR) - - CLEANFILES = stamp-h[0-9]* -Index: suricata-7.0.0/Makefile.am -=================================================================== ---- suricata-7.0.0.orig/Makefile.am -+++ suricata-7.0.0/Makefile.am -@@ -8,7 +8,7 @@ EXTRA_DIST = ChangeLog COPYING LICENSE s - lua \ - acsite.m4 \ - scripts/generate-images.sh --SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \ -+SUBDIRS = $(HTP_DIR) src qa rules doc contrib etc python ebpf \ - $(SURICATA_UPDATE_DIR) - - CLEANFILES = stamp-h[0-9]*
recipes-ids/suricata/libhtp_0.5.52.bb renamed from recipes-ids/suricata/libhtp_0.5.50.bb +1 -1
@@ -5,7 +5,7 @@ require suricata.inc LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=596ab7963a1a0e5198e5a1c4aa621843" SRC_URI = "git://github.com/OISF/libhtp.git;protocol=https;branch=0.5.x" -SRCREV = "ebe480be4a5f3bb1d44be6a9a6c2755bd8ef7e71" +SRCREV = "314ca7360e141a1e40be58707b3abeefe32258c9" DEPENDS = "zlib"
recipes-ids/suricata/suricata-crates.inc +736 -773
1,635 lines not on this page · raw message
recipes-ids/suricata/suricata_7.0.12.bb renamed from recipes-ids/suricata/suricata_7.0.0.bb +2 -7
@@ -5,7 +5,7 @@ require suricata.inc LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=c70d8d3310941dcdfcd1e02800a1f548" SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-${PV}.tar.gz" -SRC_URI[sha256sum] = "7bcd1313118366451465dc3f8385a3f6aadd084ffe44dd257dda8105863bb769" +SRC_URI[sha256sum] = "da5a591c749fed2bd986fc3b3cac25d9cfd3b453f57becf14610746999d3c5dd" DEPENDS = "lz4 libhtp"
@@ -15,12 +15,7 @@ SRC_URI += " \ file://suricata.yaml \ file://suricata.service \ file://run-ptest \ - file://fixup.patch \ - file://CVE-2024-37151.patch \ - file://CVE-2024-38534.patch \ - file://CVE-2024-38535_pre.patch \ - file://CVE-2024-38535.patch \ - file://CVE-2024-38536.patch \ + file://0001-Skip-pkg-Makefile-from-using-its-own-rust-steps.patch \ " inherit autotools pkgconfig python3native systemd ptest cargo cargo-update-recipe-crates
Signature · 1 line
2.51.0
PATCH 6/6 ima-evm-utils: remove unnecessary FILESEXTRAPATHS tweak
In reply to Scott MurrayIt was pointed out that the recipe was wrongly doing FILESEXTRAPATHS:append, but on inspection the recipe does not need it at all, so just remove.
--- .../recipes-security/ima-evm-utils/ima-evm-utils_1.5.bb | 2 -- 1 file changed, 2 deletions(-)
meta-integrity/recipes-security/ima-evm-utils/ima-evm-utils_1.5.bb +0 -2
@@ -6,8 +6,6 @@ DEPENDS += "openssl attr keyutils" DEPENDS:class-native += "openssl-native keyutils-native" -FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" - SRC_URI = " \ https://github.com/mimizohar/ima-evm-utils/releases/download/v${PV}/${BP}.tar.gz \ file://0001-Do-not-get-generation-using-ioctl-when-evm_portable-.patch \
Signature · 1 line
2.51.0