[XS] Change in openvpn[master]: openvpnserv: fix off-by-one input validation
"cron2 \(Code Review\) via Openvpn-devel" <[email protected]>
| Newsgroups | gmane.network.openvpn.devel |
|---|---|
| Message-ID | <[email protected]> |
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1888?usp=email ) Change subject: openvpnserv: fix off-by-one input validation ...................................................................... openvpnserv: fix off-by-one input validation Code checked for a hypothetical third trailing NUL character, instead of the second. Could read one extra octet beyond the buffer if it is used up by the data completely. Discovered and reported by BreachX Zero Day Labs, using Typhon AI Mil v2. Contributing Researcher: Vivek Parikh. Reported-by: Vivek Parikh <[email protected]> Tested-by: Vivek Parikh <[email protected]> CVE: 2026-78221 Change-Id: I1a181d65ad0d5e3765f57373a6ee223ede909dea Signed-off-by: Heiko Hund <[email protected]> Acked-by: Razvan Cojocaru <[email protected]> Acked-by: Arne Schwabe <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1888 Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg38856.html Signed-off-by: Gert Doering <[email protected]> --- M src/openvpnserv/interactive.c 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index 0c6e23f..d2288b9 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -2959,7 +2959,7 @@ const char *rdom = msg->resolve_domains; size_t rdom_size = sizeof(msg->resolve_domains); size_t rdom_len = strlen(rdom); - if (rdom_len && (rdom_len + 1 >= rdom_size || rdom[rdom_len + 2] != 0)) + if (rdom_len && (rdom_len + 1 >= rdom_size || rdom[rdom_len + 1] != 0)) { return ERROR_MESSAGE_DATA; } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1888?usp=email To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1a181d65ad0d5e3765f57373a6ee223ede909dea Gerrit-Change-Number: 1888 Gerrit-PatchSet: 2 Gerrit-Owner: cron2 <[email protected]> Gerrit-Reviewer: plaisthos <[email protected]> Gerrit-Reviewer: razvanc <[email protected]> Gerrit-CC: d12fk <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel