]> git.ipfire.org Git - thirdparty/openvpn.git/commit
interactive.c: add the upper bound for startupdata size
authorLev Stipakov <lev@openvpn.net>
Thu, 30 Oct 2025 15:04:26 +0000 (16:04 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 30 Oct 2025 16:15:28 +0000 (17:15 +0100)
commit37af2c953266a3ffd34b3fa95317bd995e985aec
tree168c04f18472d5b0c00e9589c1b62bcf1b3bdbd5
parent70627949b5e77dfee14d778bd3988f04ce35cf2b
interactive.c: add the upper bound for startupdata size

The size is passed from the limited-privileges process.
This check ensures that the service won't allocate
more than needed.

Reported-by: Joshua Rogers <contact@joshua.hu>
Found-by: ZeroPath (https://zeropath.com/)
Change-Id: I75ebf01641db4dcd07041e3b8b3fa8a632d07595
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1331
Message-Id: <20251030150432.4689-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34039.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c