)]}'
{
  "commit": "98745759a5c2bf971f529fa2ca1d5a1a1ce92f3c",
  "tree": "35c26c3412c5e6065b830d5969b757a2f888258e",
  "parents": [
    "7f3282131e416940d5d635f5c86debc9352bcdd6"
  ],
  "author": {
    "name": "David Benjamin",
    "email": "davidben@google.com",
    "time": "Wed Nov 11 19:21:22 2026 -0500"
  },
  "committer": {
    "name": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu Nov 12 11:41:55 2026 -0800"
  },
  "message": "Make it more obvious when epoch 0 is closed in DTLS\n\nAs soon as we receive any records from epoch 1, we stop accepting\nanything from epoch 0. This is important because, were epoch 0 still\nopen after the handshake, an attacker could inject a cleartext DTLS\npacket with some errors in it and try to cause the handshake to fail.\nDTLS needs special handling for such packet injections because, until\nTLS, it can\u0027t rely on the attacker having to guess a TCP sequence\nnumber.\n\nEpoch 0 is special here because it is cleartext. Bad records from other\nepochs won\u0027t get past the record layer, and the DTLS record layer\nsilently drops invalid records instead of letting them through.\n\nWhile we did handle this fine, there were no tests that we did, and it\u0027s\nactually slightly non-obvious why we\u0027re fine. We actually save epoch 0\nunder prev_read_epoch, so one would think it\u0027s still active. However,\nepoch 0 uses the DTLS 1.2 record header and parse_dtls12_record doesn\u0027t\nconsider prev_read_epoch, so it\u0027s actually a no-op.\n\n(Confirmed that the tests pass with and without the change, but they\nfail if I patch parse_dtls12_record to consider both epochs.)\n\nChange-Id: I5f769f9228819a7089148a3587f564260ec54ee7\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/105648\nAuto-Submit: David Benjamin \u003cdavidben@google.com\u003e\nPresubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cboringssl-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Lily Chen \u003cchlily@google.com\u003e\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6b4292a6890a5fac9221233d9a4639742791dd24",
      "old_mode": 33188,
      "old_path": "ssl/dtls_record.cc",
      "new_id": "c0f5a54be964594c37a845b79e39999faba60107",
      "new_mode": 33188,
      "new_path": "ssl/dtls_record.cc"
    },
    {
      "type": "modify",
      "old_id": "215c8b5be273f9fe29af5956d63de9f9b828f270",
      "old_mode": 33188,
      "old_path": "ssl/test/runner/dtls_tests.go",
      "new_id": "1c1f6ed56a1f71d9c93877818e792cf1e50f8986",
      "new_mode": 33188,
      "new_path": "ssl/test/runner/dtls_tests.go"
    }
  ]
}
