public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Howarth <paul@city-fan.org>
To: git-commits@fedoraproject.org
Subject: [rpms/proftpd] epel8: Fix buffer overflow in mod_rewrite "utf8trans" RewriteMap (CVE-2026-119146)
Date: Wed, 11 Nov 2026 17:47:46 GMT [thread overview]
Message-ID: <179441926605.1.12041328679650607494.rpms-proftpd-f848c0763401@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/proftpd
Branch : epel8
Commit : f848c0763401ce24bb7ad64a2d34524a7b0c284b
Author : Paul Howarth <paul@city-fan.org>
Date : 2026-11-11T16:10:54+00:00
Stats : +52/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/proftpd/c/f848c0763401ce24bb7ad64a2d34524a7b0c284b?branch=epel8
Log:
Fix buffer overflow in mod_rewrite "utf8trans" RewriteMap (CVE-2026-119146)
Guard against overly-long keys overflowing buffers when the "utf8trans"
builtin RewriteMap type is used.
---
diff --git a/proftpd-1.3.6e-CVE-2026-119146.patch b/proftpd-1.3.6e-CVE-2026-119146.patch
new file mode 100644
index 0000000..3522247
--- /dev/null
+++ b/proftpd-1.3.6e-CVE-2026-119146.patch
@@ -0,0 +1,44 @@
+--- a/contrib/mod_rewrite.c
++++ b/contrib/mod_rewrite.c
+@@ -1624,9 +1624,10 @@ static char rewrite_hex_to_char(const char *what) {
+ */
+ static int rewrite_utf8_to_ucs4(unsigned long *ucs4_buf,
+ size_t utf8_len, unsigned char *utf8_buf) {
+- const unsigned char *utf8_endbuf = utf8_buf + utf8_len;
++ const unsigned char *utf8_endbuf;
+ int ucs_len = 0;
+
++ utf8_endbuf = utf8_buf + utf8_len;
+ while (utf8_buf != utf8_endbuf) {
+ pr_signals_handle();
+
+@@ -1988,13 +1989,27 @@ static int rewrite_write_fifo(int fd, char *buf, size_t buflen) {
+ }
+
+ static char *rewrite_map_int_utf8trans(pool *map_pool, char *key) {
+- int ucs4strlen = 0;
+ static unsigned char utf8_val[PR_TUNABLE_BUFFER_SIZE] = {'\0'};
+ static unsigned long ucs4_longs[PR_TUNABLE_BUFFER_SIZE] = {0L};
++ int ucs4strlen = 0;
++ size_t key_len = 0;
+
+ /* If the key is NULL or empty, do nothing. */
++ if (key != NULL) {
++ key_len = strlen(key);
++ }
++
+ if (key == NULL ||
+- !strlen(key)) {
++ key_len == 0) {
++ return NULL;
++ }
++
++ /* If the key length exceeds our buffers, reject it. */
++ if (key_len >= sizeof(utf8_val)) {
++ rewrite_log("utf8trans: key '%.100s...' length (%lu bytes) exceeds "
++ "maximum allowed length (%lu bytes), rejecting", key,
++ (unsigned long) key_len, (unsigned long) sizeof(utf8_val));
++ errno = EPERM;
+ return NULL;
+ }
+
diff --git a/proftpd.spec b/proftpd.spec
index 2f7f15e..ef9c8d3 100644
--- a/proftpd.spec
+++ b/proftpd.spec
@@ -114,6 +114,7 @@ Patch123: https://github.com/proftpd/proftpd/commit/baf4b792.patch
Patch124: https://github.com/user-attachments/files/30205541/mod_sftp-1.3.8d-issue2190.patch
Patch125: proftpd-1.3.6e-gh2095.patch
Patch126: proftpd-1.3.6e-gh2374.patch
+Patch127: proftpd-1.3.6e-CVE-2026-119146.patch
BuildRequires: coreutils
BuildRequires: gcc
@@ -416,6 +417,11 @@ sed -i -e '/^[[:space:]]*TLSCipherSuite[[:space:]]*PROFILE=SYSTEM$/d' mod_tls.co
# https://github.com/proftpd/proftpd/issues/2374
%patch -P 126 -p1 -b .gh2374
+# Guard against overly-long keys overflowing buffers when the "utf8trans" builtin
+# RewriteMap type is used (CVE-2026-119146)
+# https://github.com/proftpd/proftpd/commit/502d280b8d0ef72e44c6dd0a35a9405af0a1e301
+%patch -P 127 -p1 -b .cve-2026-119146
+
%if %{use_systemd}
# Tweak logrotate script for systemd compatibility (#802178)
sed -i -e '/killall/s/test.*/systemctl reload proftpd.service/' \
@@ -705,6 +711,8 @@ fi
(GH#2095)
- Fix write restriction bypass via symlink following in mod_copy (GH#2374,
CVE-2026-119364)
+- Guard against overly-long keys overflowing buffers when the "utf8trans"
+ builtin RewriteMap type is used (CVE-2026-119146)
* Mon Jul 27 2026 Paul Howarth <paul@city-fan.org> - 1.3.6e-11
- Address another avenue for SQL injection, via custom SQLUserInfo queries
reply other threads:[~2026-11-11 17:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179441926605.1.12041328679650607494.rpms-proftpd-f848c0763401@fedoraproject.org \
--to=paul@city-fan.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox