)]}'
{
  "commit": "9f10003bcd26ac7ed6c9db6a173bd7db3bd17140",
  "tree": "82631045ac4a677eed418abc882e9be4d201a727",
  "parents": [
    "d4ee43291f9127b605f458667b413bf53a92eefe"
  ],
  "author": {
    "name": "Li Bingzhuo",
    "email": "lbz2770828522@gmail.com",
    "time": "Sun Oct 04 21:15:24 2026 +0800"
  },
  "committer": {
    "name": "Nicolas Morey",
    "email": "nmorey@suse.com",
    "time": "Mon Nov 16 15:20:32 2026 +0100"
  },
  "message": "rxe: Prevent overflow in wr_set_inline_data_list() bound check\n\n[ Upstream commit fc07a90f173538484d0ed68c47f96e1ab297ceb7 ]\n\nwr_set_inline_data_list() accumulates the length of the caller\u0027s buffers\nand compares the running total against the send queue\u0027s inline limit:\n\n    while (num_buf--) {\n        length \u003d buf_list-\u003elength;\n\n        if (tot_length + length \u003e qp-\u003esq.max_inline) {\n            qp-\u003eerr \u003d ENOSPC;\n            return;\n        }\n\n        memcpy(data, buf_list-\u003eaddr, length);\n\n        tot_length +\u003d length;\n\nBoth operands are size_t and both are caller controlled, so the addition in\nthe comparison can wrap.  A first buffer that leaves tot_length non-zero\nfollowed by a second buffer of length SIZE_MAX makes the sum zero, which\nsatisfies the comparison, and memcpy() is then asked to copy that length\ninto the inline area of the work queue element.  The single buffer variant\nwr_set_inline_data() compares the length against max_inline directly and\ndoes not have this problem.\n\nCompare the length against the remaining budget, which cannot wrap because\ntot_length never exceeds max_inline.\n\nFixes: 1a894ca10105 (\"Providers/rxe: Implement ibv_create_qp_ex verb\")\nSigned-off-by: Li Bingzhuo \u003clbz2770828522@gmail.com\u003e\nSigned-off-by: Nicolas Morey \u003cnmorey@suse.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fc91223d0263d005c1b457483207942289a89793",
      "old_mode": 33188,
      "old_path": "providers/rxe/rxe.c",
      "new_id": "a723936d5677a462bf15d33408281b18c3ad0a2d",
      "new_mode": 33188,
      "new_path": "providers/rxe/rxe.c"
    }
  ]
}
