)]}'
{
  "commit": "1f7745fb3580152ca902ef181b605f33cabfb1d0",
  "tree": "6f1fe5c9fb273eee61158d52d6c9de7d2eac598c",
  "parents": [
    "1abd643f3783ea8f8e273c18697ff0413aa92dc7"
  ],
  "author": {
    "name": "Ran Hongyun",
    "email": "ranhongyun1@huawei.com",
    "time": "Mon Jul 13 19:55:25 2026 +0800"
  },
  "committer": {
    "name": "Christian Brauner",
    "email": "brauner@kernel.org",
    "time": "Wed Sep 16 10:26:47 2026 +0200"
  },
  "message": "squashfs: Add dictionary size range check to prevent shift-out-of-bounds\n\nWhen an abnormal SquashFS image (COMP_OPTS flag is 1 but dictionary size\nis 0) is mounted, and performs shift operations using dictionarysize, the\nshift exponent is -1, causing a shift-out-of-bounds.\n\nDetail as below:\nsquashfs_comp_opts(msblk, buffer, length)\n  squashfs_xz_comp_opts()\n    if (comp_opts)\n      n \u003d ffs(opts-\u003edict_size) - 1;\u003c----opts-\u003edict_size\u003d0, n\u003d-1\n      if (opts-\u003edict_size !\u003d (1 \u003c\u003c n) \u0026\u0026 opts-\u003edict_size !\u003d\n\t  \t(1 \u003c\u003c n) + (1 \u003c\u003c (n + 1))) \u003c----shift-out-of-bounds\n\nFix it by adding a dictionary size range check before the shift operation.\n\nFixes: ff750311d30a (\"Squashfs: add compression options support to xz decompressor\")\nSigned-off-by: Ran Hongyun \u003cranhongyun1@huawei.com\u003e\nLink: https://patch.msgid.link/20260713115525.2661734-1-ranhongyun1@huawei.com\nReviewed-by: Phillip Lougher \u003cphillip@squashfs.org.uk\u003e\nReviewed-by: Zhihao Cheng \u003cchengzhihao1@huawei.com\u003e\nSigned-off-by: Christian Brauner (Amutable) \u003cbrauner@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a4ff3ec9c8cd3a6cbd726775a6bf826362bac7c",
      "old_mode": 33188,
      "old_path": "fs/squashfs/xz_wrapper.c",
      "new_id": "6610af24144934f676ff0e3188982ee24ada050f",
      "new_mode": 33188,
      "new_path": "fs/squashfs/xz_wrapper.c"
    }
  ]
}
