Control: tags -1 + fixed-upstream patch
Hi,
I mapped the three CVEs against upstream hashcat and Debian's
7.1.2+ds1-4. All are fixed in upstream v8.0.0 (released 2026-10-25).
CVE-2026-42482 (mangle_to_hex_lower/upper in src/rp_cpu.c)
Debian 7.1.2 does NOT seem to be affected. These functions do not
exist in 7.1.2: neither the v7.1.2 tag nor the 7.1.2+ds1-4 source
(
https://www.google.com/url?q=http://sources.debian.org&source=gmail&ust=1793793536257000&sa=E)
contains "to_hex" in src/rp_cpu.c. The hex rule
ops were added later (195e14cb82 "Initial hex rule support",
2025-10-09). The reporter's write-up says "v7.1.2" but quotes code
that is only on later master, which also explains why it lists the
Kerberos modules 35300/35400; those don't exist in 7.1.2 either.
The fix upstream is 5381eddb13 "Fix buffer overflow in rule parsing
(#4618)", which is the PR the write-up refers to. Please double-check,
but I believe this CVE can be marked not-affected for 7.1.2.
CVE-2026-42484 (PKZIP hex_to_binary heap overflow; modes 17200, 17210,
17220, 17225, 17230)
Fix: 9468ae18f2761a96c3f1c3247f3ca184c4e9ac22
"Fix PKZIP module heap overflow causing crashes (#4690)"
It bounds data_length and the hex length (<= MAX_DATA*2, even). It
applies cleanly to 7.1.2.
CVE-2026-42483 (Kerberos account_info / domain overflows)
The write-up covers two different bugs:
a) account_info length unbounded (13100, 18200):
caa6563ef9dbd347f1c935212912cafd1f8a37cf "Fix 0x80 padding byte
overflow causing crashes/corrupt output (#4698)", tightened from >
to >= in 836f11de165a1703d772fbafd82e17422b56f029.
b) etype 17/18 modules (19600, 19700, 19800, 19900, 28800, 28900,
32100, 32200): the struct fields are bounded by the tokenizer
(len_max 512), but the parsers copy the domain into a local
"u8 domain[128]" stack buffer:
6a3994efda07d7200511de2f5382e724de6a85a4
"Fix Kerberos etype 17/18 domain buffer overflow (#4689)"
It changes the local buffer to domain[512].
Backport for 7.1.2 (attached, against the upstream v7.1.2 tag;
src/modules only):
- 9468ae18f2 applies as is.
- The decode-side hunks of caa6563ef9 and 6a3994efda apply as is. Their
module_hash_encode hunks don't, because 7.1.2 uses stack arrays where
upstream later moved to hcmalloc(). I applied the same "+1 for the
NUL" there by hand: char data[5120 * 4 * 2 + 1] in 13100, 18200,
19600, 19700, 32100 and 32200, and ct_data[16384 * 2 + 1] in 16900.
- The module hunks of 836f11de16 (13100, 18200) apply with an offset.
- caa6563ef9 also carries upstream's matching bound fixes for 00111,
01411, 01711, 05300, 05400, 11400 and 13600. I kept them, since they
are the same class of bug.
That is 23 files changed, 78 insertions and 33 deletions. None of the
patches in debian/patches touch src/modules/.
Testing: the patched 7.1.2 tree builds with "make" (gcc, amd64, sid)
with no new warnings in the touched modules. I have NOT run hashcat
with the patched modules (not even a parse round-trip of the example
hashes) and did not run any reproducer, so please treat the backport
as compile-tested only.
Regards
diff --git a/src/modules/module_00111.c b/src/modules/module_00111.c
index fbb4f31..9a3b84b 100644
--- a/src/modules/module_00111.c
+++ b/src/modules/module_00111.c
@@ -111,6 +111,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *salt_pos = tmp_buf + 20;
int salt_len = tmp_len - 20;
+ if (salt_len >= (int) sizeof (salt->salt_buf)) return (PARSER_SALT_LENGTH);
+
salt->salt_len = salt_len;
memcpy (salt->salt_buf, salt_pos, salt_len);
diff --git a/src/modules/module_01411.c b/src/modules/module_01411.c
index 35f352e..96ad44d 100644
--- a/src/modules/module_01411.c
+++ b/src/modules/module_01411.c
@@ -115,6 +115,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *salt_pos = tmp_buf + 32;
int salt_len = tmp_len - 32;
+ if (salt_len >= (int) sizeof (salt->salt_buf)) return (PARSER_SALT_LENGTH);
+
salt->salt_len = salt_len;
memcpy (salt->salt_buf, salt_pos, salt_len);
diff --git a/src/modules/module_01711.c b/src/modules/module_01711.c
index 8afc9a8..bca756c 100644
--- a/src/modules/module_01711.c
+++ b/src/modules/module_01711.c
@@ -147,6 +147,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *salt_pos = tmp_buf + 64;
int salt_len = tmp_len - 64;
+ if (salt_len >= (int) sizeof (salt->salt_buf)) return (PARSER_SALT_LENGTH);
+
salt->salt_len = salt_len;
memcpy (salt->salt_buf, salt_pos, salt_len);
diff --git a/src/modules/module_05300.c b/src/modules/module_05300.c
index 036043f..203b54c 100644
--- a/src/modules/module_05300.c
+++ b/src/modules/module_05300.c
@@ -143,8 +143,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
ikepsk->msg_len[5] = ikepsk->msg_len[4] + token.len[5] / 2;
ikepsk->nr_len = (token.len[6] + token.len[7]) / 2;
- if (ikepsk->msg_len[5] > 512) return (PARSER_SALT_LENGTH);
- if (ikepsk->nr_len > 64) return (PARSER_SALT_LENGTH);
+ if (ikepsk->msg_len[5] >= 512) return (PARSER_SALT_LENGTH);
+ if (ikepsk->nr_len >= 64) return (PARSER_SALT_LENGTH);
u8 *ptr1 = (u8 *) ikepsk->msg_buf;
u8 *ptr2 = (u8 *) ikepsk->nr_buf;
diff --git a/src/modules/module_05400.c b/src/modules/module_05400.c
index e5df606..0226049 100644
--- a/src/modules/module_05400.c
+++ b/src/modules/module_05400.c
@@ -143,8 +143,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
ikepsk->msg_len[5] = ikepsk->msg_len[4] + token.len[5] / 2;
ikepsk->nr_len = (token.len[6] + token.len[7]) / 2;
- if (ikepsk->msg_len[5] > 512) return (PARSER_SALT_LENGTH);
- if (ikepsk->nr_len > 64) return (PARSER_SALT_LENGTH);
+ if (ikepsk->msg_len[5] >= 512) return (PARSER_SALT_LENGTH);
+ if (ikepsk->nr_len >= 64) return (PARSER_SALT_LENGTH);
u8 *ptr1 = (u8 *) ikepsk->msg_buf;
u8 *ptr2 = (u8 *) ikepsk->nr_buf;
diff --git a/src/modules/module_11400.c b/src/modules/module_11400.c
index d354079..46f4f33 100644
--- a/src/modules/module_11400.c
+++ b/src/modules/module_11400.c
@@ -294,7 +294,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
esalt_len = 1 + nonce_len + 1 + nonce_count_len + 1 + nonce_client_len + 1 + qop_len + 1 + 32;
- if (esalt_len > max_esalt_len) return (PARSER_SALT_LENGTH);
+ if (esalt_len >= max_esalt_len) return (PARSER_SALT_LENGTH);
// init
@@ -328,7 +328,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
esalt_len = 1 + nonce_len + 1 + 32;
- if (esalt_len > max_esalt_len) return (PARSER_SALT_LENGTH);
+ if (esalt_len >= max_esalt_len) return (PARSER_SALT_LENGTH);
// init
diff --git a/src/modules/module_13100.c b/src/modules/module_13100.c
index f59c326..cc9fa88 100644
--- a/src/modules/module_13100.c
+++ b/src/modules/module_13100.c
@@ -140,6 +140,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const int account_info_len = account_info_stop - account_info_start;
+ if (account_info_len >= (int) sizeof (krb5tgs->account_info)) return (PARSER_SALT_LENGTH);
+
token.token_cnt++;
// etype
@@ -165,7 +167,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[4] = '$';
token.len_min[4] = 64;
- token.len_max[4] = 40960;
+ token.len_max[4] = 40958;
token.attr[4] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
@@ -191,7 +193,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[3] = '$';
token.len_min[3] = 64;
- token.len_max[3] = 40960;
+ token.len_max[3] = 40958;
token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
@@ -204,7 +206,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[1] = ':';
token.len_min[1] = 0;
- token.len_max[1] = 2048;
+ token.len_max[1] = (int) sizeof (krb5tgs->account_info) - 1;
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH;
// checksum
@@ -218,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[3] = '$';
token.len_min[3] = 64;
- token.len_max[3] = 40960;
+ token.len_max[3] = 40958;
token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
@@ -304,7 +306,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5tgs_t *krb5tgs = (const krb5tgs_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5tgs->edata2_len; i += 1, j += 2)
{
diff --git a/src/modules/module_13600.c b/src/modules/module_13600.c
index 00d873a..4bf7872 100644
--- a/src/modules/module_13600.c
+++ b/src/modules/module_13600.c
@@ -157,7 +157,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[7] = '*';
token.len_min[7] = 0;
- token.len_max[7] = 0x200000 * 4 * 2;
+ token.len_max[7] = 0x200000 * 4 * 2 - 2;
token.attr[7] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
diff --git a/src/modules/module_16900.c b/src/modules/module_16900.c
index bcd026d..069c755 100644
--- a/src/modules/module_16900.c
+++ b/src/modules/module_16900.c
@@ -241,7 +241,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const ansible_vault_t *ansible_vault = (const ansible_vault_t *) esalt_buf;
- u8 ct_data[16384 + 1] = { 0 };
+ u8 ct_data[16384 * 2 + 1] = { 0 };
const u32 *ct_data_ptr = ansible_vault->ct_data_buf;
diff --git a/src/modules/module_17200.c b/src/modules/module_17200.c
index f380f73..c7ffe36 100644
--- a/src/modules/module_17200.c
+++ b/src/modules/module_17200.c
@@ -295,6 +295,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (p == NULL) return PARSER_HASH_LENGTH;
pkzip->hash.data_length = strtoul (p, NULL, 16);
+ if (pkzip->hash.data_length > MAX_DATA) return (PARSER_TOKEN_LENGTH);
+
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
u16 checksum_from_crc = 0;
@@ -317,7 +319,12 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
- hex_to_binary (p, strlen (p), (char *) &(pkzip->hash.data));
+ const size_t data_hex_len = strlen (p);
+
+ if (data_hex_len > MAX_DATA * 2) return (PARSER_TOKEN_LENGTH);
+ if (data_hex_len % 2) return (PARSER_TOKEN_LENGTH);
+
+ hex_to_binary (p, data_hex_len, (char *) &(pkzip->hash.data));
// fake salt
salt->salt_buf[0] = pkzip->hash.data[0];
diff --git a/src/modules/module_17210.c b/src/modules/module_17210.c
index 050ca05..f56c578 100644
--- a/src/modules/module_17210.c
+++ b/src/modules/module_17210.c
@@ -263,6 +263,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (p == NULL) return PARSER_HASH_LENGTH;
pkzip->hash.data_length = strtoul (p, NULL, 16);
+ if (pkzip->hash.data_length > MAX_DATA) return (PARSER_TOKEN_LENGTH);
+
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
u16 checksum_from_crc = 0;
@@ -285,7 +287,12 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
- hex_to_binary (p, strlen (p), (char *) &(pkzip->hash.data));
+ const size_t data_hex_len = strlen (p);
+
+ if (data_hex_len > MAX_DATA * 2) return (PARSER_TOKEN_LENGTH);
+ if (data_hex_len % 2) return (PARSER_TOKEN_LENGTH);
+
+ hex_to_binary (p, data_hex_len, (char *) &(pkzip->hash.data));
// fake salt
salt->salt_buf[0] = pkzip->hash.data[0];
diff --git a/src/modules/module_17220.c b/src/modules/module_17220.c
index d9ea88a..3e5d310 100644
--- a/src/modules/module_17220.c
+++ b/src/modules/module_17220.c
@@ -296,6 +296,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (p == NULL) return PARSER_HASH_LENGTH;
pkzip->hashes[i].data_length = strtoul (p, NULL, 16);
+ if (pkzip->hashes[i].data_length > MAX_DATA) return (PARSER_TOKEN_LENGTH);
+
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
u16 checksum_from_crc = 0;
@@ -318,7 +320,12 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
- hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
+ const size_t data_hex_len = strlen (p);
+
+ if (data_hex_len > MAX_DATA * 2) return (PARSER_TOKEN_LENGTH);
+ if (data_hex_len % 2) return (PARSER_TOKEN_LENGTH);
+
+ hex_to_binary (p, data_hex_len, (char *) &(pkzip->hashes[i].data));
// fake salt
salt->salt_buf[i] = pkzip->hashes[i].data[0];
diff --git a/src/modules/module_17225.c b/src/modules/module_17225.c
index 7e7d3ff..4579e03 100644
--- a/src/modules/module_17225.c
+++ b/src/modules/module_17225.c
@@ -296,6 +296,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (p == NULL) return PARSER_HASH_LENGTH;
pkzip->hashes[i].data_length = strtoul (p, NULL, 16);
+ if (pkzip->hashes[i].data_length > MAX_DATA) return (PARSER_TOKEN_LENGTH);
+
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
u16 checksum_from_crc = 0;
@@ -318,7 +320,12 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
- hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
+ const size_t data_hex_len = strlen (p);
+
+ if (data_hex_len > MAX_DATA * 2) return (PARSER_TOKEN_LENGTH);
+ if (data_hex_len % 2) return (PARSER_TOKEN_LENGTH);
+
+ hex_to_binary (p, data_hex_len, (char *) &(pkzip->hashes[i].data));
// fake salt
salt->salt_buf[i] = pkzip->hashes[i].data[0];
diff --git a/src/modules/module_17230.c b/src/modules/module_17230.c
index fd285f5..1c21419 100644
--- a/src/modules/module_17230.c
+++ b/src/modules/module_17230.c
@@ -279,6 +279,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if (p == NULL) return PARSER_HASH_LENGTH;
pkzip->hashes[i].data_length = strtoul (p, NULL, 16);
+ if (pkzip->hashes[i].data_length > MAX_DATA) return (PARSER_TOKEN_LENGTH);
+
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
u16 checksum_from_crc = 0;
@@ -301,7 +303,12 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
p = strtok_r (NULL, "*", &saveptr);
if (p == NULL) return PARSER_HASH_LENGTH;
- hex_to_binary (p, strlen (p), (char *) &(pkzip->hashes[i].data));
+ const size_t data_hex_len = strlen (p);
+
+ if (data_hex_len > MAX_DATA * 2) return (PARSER_TOKEN_LENGTH);
+ if (data_hex_len % 2) return (PARSER_TOKEN_LENGTH);
+
+ hex_to_binary (p, data_hex_len, (char *) &(pkzip->hashes[i].data));
// fake salt
salt->salt_buf[i] = pkzip->hashes[i].data[0];
diff --git a/src/modules/module_18200.c b/src/modules/module_18200.c
index 0c257b1..155e9b3 100644
--- a/src/modules/module_18200.c
+++ b/src/modules/module_18200.c
@@ -147,6 +147,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const int account_info_len = account_info_stop - account_info_start;
+ if (account_info_len >= (int) sizeof (krb5asrep->account_info)) return (PARSER_SALT_LENGTH);
+
token.token_cnt = 4;
if (krb5asrep->format == 1)
@@ -177,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[4] = '$';
token.len_min[4] = 64;
- token.len_max[4] = 40960;
+ token.len_max[4] = 40958;
token.attr[4] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
}
@@ -200,7 +202,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[3] = '$';
token.len_min[3] = 64;
- token.len_max[3] = 40960;
+ token.len_max[3] = 40958;
token.attr[3] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX;
}
@@ -275,7 +277,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5asrep_t *krb5asrep = (const krb5asrep_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5asrep->edata2_len; i += 1, j += 2)
{
diff --git a/src/modules/module_19600.c b/src/modules/module_19600.c
index 9b9a9f2..93312dc 100644
--- a/src/modules/module_19600.c
+++ b/src/modules/module_19600.c
@@ -213,7 +213,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
@@ -261,7 +261,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5tgs_17_t *krb5tgs = (const krb5tgs_17_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5tgs->edata2_len; i += 1, j += 2)
{
diff --git a/src/modules/module_19700.c b/src/modules/module_19700.c
index 8f64592..b2550b2 100644
--- a/src/modules/module_19700.c
+++ b/src/modules/module_19700.c
@@ -230,7 +230,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
@@ -278,7 +278,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5tgs_18_t *krb5tgs = (const krb5tgs_18_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5tgs->edata2_len; i += 1, j += 2)
{
diff --git a/src/modules/module_19800.c b/src/modules/module_19800.c
index 44146c4..fec4b70 100644
--- a/src/modules/module_19800.c
+++ b/src/modules/module_19800.c
@@ -157,7 +157,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
diff --git a/src/modules/module_19900.c b/src/modules/module_19900.c
index c8ecebe..ac24881 100644
--- a/src/modules/module_19900.c
+++ b/src/modules/module_19900.c
@@ -157,7 +157,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
diff --git a/src/modules/module_28800.c b/src/modules/module_28800.c
index 7723099..a1a9fbc 100644
--- a/src/modules/module_28800.c
+++ b/src/modules/module_28800.c
@@ -197,7 +197,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
diff --git a/src/modules/module_28900.c b/src/modules/module_28900.c
index 93c3374..1b6dedf 100644
--- a/src/modules/module_28900.c
+++ b/src/modules/module_28900.c
@@ -198,7 +198,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
// domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
memcpy (domain, domain_pos, domain_len);
uppercase (domain, domain_len);
diff --git a/src/modules/module_32100.c b/src/modules/module_32100.c
index 18a9576..5ba9a18 100644
--- a/src/modules/module_32100.c
+++ b/src/modules/module_32100.c
@@ -268,7 +268,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *account_info_ptr = (u8 *) krb5asrep->account_info;
// Domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
if (krb5asrep->format == 1)
{
@@ -319,7 +319,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5asrep_17_t *krb5asrep = (const krb5asrep_17_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5asrep->edata2_len; i += 1, j += 2)
{
diff --git a/src/modules/module_32200.c b/src/modules/module_32200.c
index 4c71f94..4806c0c 100644
--- a/src/modules/module_32200.c
+++ b/src/modules/module_32200.c
@@ -268,7 +268,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
u8 *account_info_ptr = (u8 *) krb5asrep->account_info;
// Domain must be uppercase
- u8 domain[128];
+ u8 domain[512];
if (krb5asrep->format == 1)
{
@@ -319,7 +319,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
{
const krb5asrep_18_t *krb5asrep = (const krb5asrep_18_t *) esalt_buf;
- char data[5120 * 4 * 2] = { 0 };
+ char data[5120 * 4 * 2 + 1] = { 0 };
for (u32 i = 0, j = 0; i < krb5asrep->edata2_len; i += 1, j += 2)
{