diff options
| -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 9d846f46a2..3a0fff5599 100644 --- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb +++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.7c.bb | |||
| @@ -16,6 +16,7 @@ SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https | |||
| 16 | file://build_fixup.patch \ | 16 | file://build_fixup.patch \ |
| 17 | file://proftpd.service \ | 17 | file://proftpd.service \ |
| 18 | file://CVE-2023-51713.patch \ | 18 | file://CVE-2023-51713.patch \ |
| 19 | file://CVE-2024-57392.patch \ | ||
| 19 | " | 20 | " |
| 20 | 21 | ||
| 21 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
