)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000001,"name":"Frank Lichtenheld","display_name":"Frank Lichtenheld","email":"frank@lichtenheld.com","username":"flichtenheld","status":"OpenVPN Inc."},"change_message_id":"eb8668b6e9168c4fe6542585beea3d5e9851db7a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"6de7ff95_61bd2ae4","updated":"2026-11-02 11:46:53.000000000","message":"cppcheck issue needs fixing","commit_id":"2de62e2fe5ed7b35cfb8bc64155e9256d4b7954f"}],"src/openvpn/crypto.c":[{"author":{"_account_id":1000035,"name":"Steffan Karger","display_name":"Steffan Karger","email":"steffan@karger.me","username":"syzzer","status":"Commits and comments are my own views, not those of my employer."},"change_message_id":"d9a7a0dab46df8f59c758e34e49cb2e6060f016f","unresolved":true,"context_lines":[{"line_number":1677,"context_line":"check_key2(struct key2 *key2)"},{"line_number":1678,"context_line":"{"},{"line_number":1679,"context_line":"    /* Check the first 128 bit of every key slot to be not 0. This is"},{"line_number":1680,"context_line":"     * not a compressive check, but no valid key should fail this check */"},{"line_number":1681,"context_line":""},{"line_number":1682,"context_line":"    uint8_t zero_key[16] \u003d { 0 };"},{"line_number":1683,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"bcd1a988_246b9b9b","line":1680,"updated":"2026-11-02 12:57:43.000000000","message":"Comprehensive ?","commit_id":"8191543f128ca4c29ac7f0806663132bead3d1ae"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"7771a1831f9e23b6e8907ae39306f453fc2d95a8","unresolved":false,"context_lines":[{"line_number":1677,"context_line":"check_key2(struct key2 *key2)"},{"line_number":1678,"context_line":"{"},{"line_number":1679,"context_line":"    /* Check the first 128 bit of every key slot to be not 0. This is"},{"line_number":1680,"context_line":"     * not a compressive check, but no valid key should fail this check */"},{"line_number":1681,"context_line":""},{"line_number":1682,"context_line":"    uint8_t zero_key[16] \u003d { 0 };"},{"line_number":1683,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"1d8b74b5_8ca3aed8","line":1680,"in_reply_to":"bcd1a988_246b9b9b","updated":"2026-11-02 13:21:09.000000000","message":"Done","commit_id":"8191543f128ca4c29ac7f0806663132bead3d1ae"},{"author":{"_account_id":1000035,"name":"Steffan Karger","display_name":"Steffan Karger","email":"steffan@karger.me","username":"syzzer","status":"Commits and comments are my own views, not those of my employer."},"change_message_id":"d9a7a0dab46df8f59c758e34e49cb2e6060f016f","unresolved":true,"context_lines":[{"line_number":1686,"context_line":"        || memcmp(key2-\u003ekeys[0].hmac, zero_key, sizeof(zero_key)) \u003d\u003d 0"},{"line_number":1687,"context_line":"        || memcmp(key2-\u003ekeys[1].hmac, zero_key, sizeof(zero_key)) \u003d\u003d 0)"},{"line_number":1688,"context_line":"    {"},{"line_number":1689,"context_line":"        msg(M_FATAL, \"One key in static key/generated key  is all zero.\");"},{"line_number":1690,"context_line":"    }"},{"line_number":1691,"context_line":"}"},{"line_number":1692,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"6023c95d_195bfd26","line":1689,"updated":"2026-11-02 12:57:43.000000000","message":"Not sure we ever trigger this code in response to external input, but in general we should better not do memcmp() on secret data, because we might somehow leak information through timing side channel. Use memcmp_constant_time() instead.","commit_id":"8191543f128ca4c29ac7f0806663132bead3d1ae"},{"author":{"_account_id":1000003,"name":"Arne Schwabe","display_name":"Arne Schwabe","email":"arne-openvpn@rfc2549.org","username":"plaisthos"},"change_message_id":"7771a1831f9e23b6e8907ae39306f453fc2d95a8","unresolved":false,"context_lines":[{"line_number":1686,"context_line":"        || memcmp(key2-\u003ekeys[0].hmac, zero_key, sizeof(zero_key)) \u003d\u003d 0"},{"line_number":1687,"context_line":"        || memcmp(key2-\u003ekeys[1].hmac, zero_key, sizeof(zero_key)) \u003d\u003d 0)"},{"line_number":1688,"context_line":"    {"},{"line_number":1689,"context_line":"        msg(M_FATAL, \"One key in static key/generated key  is all zero.\");"},{"line_number":1690,"context_line":"    }"},{"line_number":1691,"context_line":"}"},{"line_number":1692,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":2,"id":"c9cd59e5_e9dfda86","line":1689,"in_reply_to":"6023c95d_195bfd26","updated":"2026-11-02 13:21:09.000000000","message":"Yeah it is better to use memcmp_constant_time here. External input is only TLS EKM generated keys and there might be a theorectical problem indeed. \n\nThe old code didn\u0027t do a constant check but I don\u0027t think that gave a useful side channel attack vector since this check is only done once.","commit_id":"8191543f128ca4c29ac7f0806663132bead3d1ae"}]}
