diff options
author | Vijay Anusuri <vanusuri@mvista.com> | 2025-05-07 18:25:53 +0530 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-05-21 09:17:27 -0400 |
commit | 491671faee11ea131feab5a3a451d1a01deb2ab1 (patch) | |
tree | 85287f40f3af871182527dcc5b429125ab30be8f | |
parent | c03b93fa6c9387e90430eca15f6ca5f75e84bb04 (diff) | |
download | meta-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.patch | 42 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb | 1 |
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 @@ | |||
1 | From 981a37916fdb7b73435c6d5cdb01428b2269427d Mon Sep 17 00:00:00 2001 | ||
2 | From: TJ Saunders <tj@castaglia.org> | ||
3 | Date: Sun, 9 Feb 2025 12:14:25 -0800 | ||
4 | Subject: [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 | |||
8 | Upstream-Status: Backport [https://github.com/proftpd/proftpd/commit/981a37916fdb7b73435c6d5cdb01428b2269427d] | ||
9 | CVE: CVE-2024-57392 | ||
10 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
11 | --- | ||
12 | modules/mod_ls.c | 7 +++++-- | ||
13 | 1 file changed, 5 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/modules/mod_ls.c b/modules/mod_ls.c | ||
16 | index 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 | -- | ||
41 | 2.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 | ||
20 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |