)]}'
{
  "commit": "2d09a1bdb0c21c4e5fe8d9e70146dac431f3273a",
  "tree": "2238f1736b3de180648901b32db408188d330c6a",
  "parents": [
    "d69f3cc1133ad54b5d74faa7cb410422b619586a"
  ],
  "author": {
    "name": "Duy Truong",
    "email": "duytruong@google.com",
    "time": "Tue Jun 16 17:13:54 2026 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu Aug 20 13:23:35 2026 -0700"
  },
  "message": "Fix L2CAP heap overflow by enforcing minimum MPS\n\nAn attacker could trigger an integer underflow and subsequent ~65KB heap overflow by sending a crafted L2CAP CONFIG_REQ with an ERTM MPS value of 1. During L2CAP packet transmission, the Maximum PDU Payload Size (`max_pdu`) is derived from this MPS. If `max_pdu` is 1, subtracting `L2CAP_SDU_LEN_OVERHEAD` (which is 2) causes the unsigned 16-bit integer to underflow to 65535, which is then used in a buffer allocation.\n\nThis commit fixes the issue by enforcing a minimum bound for the MPS in `l2c_fcr_process_peer_cfg_req`. If the requested MPS is greater than 0 but less than 8, it is overridden to 8 and the configuration request is rejected by setting `fcr_ok \u003d L2CAP_PEER_CFG_UNACCEPTABLE`. This prevents the `max_pdu` variable from underflowing, thereby eliminating the root cause of the heap overflow.\n\nTest: /google/bin/releases/alint/alint \u0026\u0026 atest net_test_stack_l2cap\n\nBug: 511263142\nFlag: EXEMPT BUGFIX\nThis was autogenerated by MendIt (go/androidmendit)\n\n(cherry picked from commit c2a47d8f70ef96e417ac0aec02a80c5ec5710e3a)\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:47c9773a2d5d5205761499bc3e23b484c48551b7\nMerged-In: If3482a9e8635c78492da32695cf33a1412d255b8\nChange-Id: If3482a9e8635c78492da32695cf33a1412d255b8\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e110189a023c9b6381b3919049a72da267f04d62",
      "old_mode": 33188,
      "old_path": "system/stack/l2cap/l2c_fcr.cc",
      "new_id": "e87d8ca4c9f8a0f9222fe2150880abd78e427d18",
      "new_mode": 33188,
      "new_path": "system/stack/l2cap/l2c_fcr.cc"
    }
  ]
}
