)]}'
{
  "commit": "687617555cedfb74c9e3cb85d759b908dcb17856",
  "tree": "84f2dd2983962f69915f4d7cdf25e026692ed6ae",
  "parents": [
    "2641a9e0a1dd4af2e21995470a21d55dd35e5203"
  ],
  "author": {
    "name": "Muhammad Bilal",
    "email": "meatuni001@gmail.com",
    "time": "Sun Jun 21 00:56:35 2026 +0500"
  },
  "committer": {
    "name": "Luiz Augusto von Dentz",
    "email": "luiz.von.dentz@intel.com",
    "time": "Mon Jul 06 10:46:57 2026 -0400"
  },
  "message": "Bluetooth: L2CAP: validate option length before reading conf opt value\n\nl2cap_get_conf_opt() derives the option length from the\nattacker-controlled opt-\u003elen field and immediately dereferences\nopt-\u003eval (as u8, get_unaligned_le16() or get_unaligned_le32(), or a\nraw pointer for the default case) before any caller has confirmed\nthat opt-\u003elen bytes are present in the buffer. The callers\n(l2cap_parse_conf_req(), l2cap_parse_conf_rsp() and\nl2cap_conf_rfc_get()) only detect a malformed option afterwards, once\nthe running length has gone negative, by which point the\nout-of-bounds read has already executed.\n\nAn existing post-hoc length check keeps the garbage value from being\nconsumed, so this is not a data leak in the current control flow. It\nis still a validate-after-use ordering bug: up to 4 bytes are read\npast the end of the buffer before it is known to contain them, and it\nis fragile to future changes in the callers.\n\nFix it at the source. Pass the end of the buffer into\nl2cap_get_conf_opt() and refuse to touch opt-\u003eval unless the full\noption (header + value) fits. Each caller computes an end pointer\nonce before the loop and checks the return value directly instead of\ninferring the error from a negative length.\n\nFixes: 7c9cbd0b5e38 (\"Bluetooth: Verify that l2cap_get_conf_opt provides large enough buffer\")\nCc: stable@vger.kernel.org\nSigned-off-by: Muhammad Bilal \u003cmeatuni001@gmail.com\u003e\nSigned-off-by: Luiz Augusto von Dentz \u003cluiz.von.dentz@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "036d887dec34c2ecdd62f30d9aa7fc81f03fdbea",
      "old_mode": 33188,
      "old_path": "net/bluetooth/l2cap_core.c",
      "new_id": "a1d249f42be781e2ac827d0cfc3cab0ec366bb77",
      "new_mode": 33188,
      "new_path": "net/bluetooth/l2cap_core.c"
    }
  ]
}
