summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Anusuri <vanusuri@mvista.com>2025-05-07 18:25:53 +0530
committerArmin Kuster <akuster808@gmail.com>2025-05-21 09:17:27 -0400
commit491671faee11ea131feab5a3a451d1a01deb2ab1 (patch)
tree85287f40f3af871182527dcc5b429125ab30be8f
parentc03b93fa6c9387e90430eca15f6ca5f75e84bb04 (diff)
downloadmeta-openembedded-scarthgap-next.tar.gz
proftpd: Fix CVE-2024-57392scarthgap-nextscarthgap
Upstream-Status: Backport from https://github.com/proftpd/proftpd/commit/981a37916fdb7b73435c6d5cdb01428b2269427d Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/proftpd/files/CVE-2024-57392.patch42
-rw-r--r--meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb1
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/proftpd/files/CVE-2024-57392.patch b/meta-networking/recipes-daemons/proftpd/files/CVE-2024-57392.patch
new file mode 100644
index 0000000000..0b50175a55
--- /dev/null
+++ b/meta-networking/recipes-daemons/proftpd/files/CVE-2024-57392.patch
@@ -0,0 +1,42 @@
1From 981a37916fdb7b73435c6d5cdb01428b2269427d Mon Sep 17 00:00:00 2001
2From: TJ Saunders <tj@castaglia.org>
3Date: Sun, 9 Feb 2025 12:14:25 -0800
4Subject: [PATCH] Issue #1866: Some of the fuzzing tests submitted in the
5 advisory ran into existing null pointer dereferences (not buffer overflows);
6 let's correct them. (#1867)
7
8Upstream-Status: Backport [https://github.com/proftpd/proftpd/commit/981a37916fdb7b73435c6d5cdb01428b2269427d]
9CVE: CVE-2024-57392
10Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
11---
12 modules/mod_ls.c | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
14
15diff --git a/modules/mod_ls.c b/modules/mod_ls.c
16index 45a3187bd..f7abfe540 100644
17--- a/modules/mod_ls.c
18+++ b/modules/mod_ls.c
19@@ -349,7 +349,8 @@ static int sendline(int flags, char *fmt, ...) {
20 errno != 0) {
21 int xerrno = errno;
22
23- if (session.d != NULL) {
24+ if (session.d != NULL &&
25+ session.d->outstrm != NULL) {
26 xerrno = PR_NETIO_ERRNO(session.d->outstrm);
27 }
28
29@@ -1039,7 +1040,9 @@ static int outputfiles(cmd_rec *cmd) {
30 return res;
31 }
32
33- tail->down = NULL;
34+ if (tail != NULL) {
35+ tail->down = NULL;
36+ }
37 tail = NULL;
38 colwidth = (colwidth | 7) + 1;
39 if (opt_l || !opt_C) {
40--
412.25.1
42
diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb
index ecd2777247..b45cb6aaec 100644
--- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb
+++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https
15 file://contrib.patch \ 15 file://contrib.patch \
16 file://build_fixup.patch \ 16 file://build_fixup.patch \
17 file://proftpd.service \ 17 file://proftpd.service \
18 file://CVE-2024-57392.patch \
18 " 19 "
19 20
20S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"