{
  "id": "CVE-2026-89557",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-89557",
  "published_at": "2026-09-11T19:44:29.857Z",
  "title": "md: do overflow check for sb-\u003ebblog_shift in super_1_load()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd: do overflow check for sb-\u003ebblog_shift in super_1_load()\n\nIn super_1_load(), sb-\u003ebblog_shift is an __u8 type value loaded from on-\ndisk superblock. It is used for badblocks API badblocks_set() by the\nfollowing sequence,\n\n 1930   rdev-\u003ebadblocks.shift = sb-\u003ebblog_shift;\n 1931   for (i = 0 ; i \u003c (sectors \u003c\u003c (9-3)) ; i++, bbp++) {\n 1932           u64 bb = le64_to_cpu(*bbp);\n 1933           int count = bb \u0026 (0x3ff);\n 1934           u64 sector = bb \u003e\u003e 10;\n 1935           sector \u003c\u003c= sb-\u003ebblog_shift;\n 1936           count \u003c\u003c= sb-\u003ebblog_shift;\n 1937           if (bb + 1 == 0)\n 1938                   break;\n 1939           if (!badblocks_set(\u0026rdev-\u003ebadblocks, sector, count, 1))\n 1940                   return -EINVAL;\n 1941   }\n\nbb-\u003ebblog_shit is in range of 0-255, variable sector is 64bit width, for\nan invalid bb-\u003ebblog_shit, it is possible to make sector be overflowed\nby the following calculation,\n 1935           sector \u003c\u003c= sb-\u003ebblog_shift;\nThen in turn when call badblocks_set() at line 1939 with the invalid\nrdev-\u003ebadblocks.shift set at line 1930, may result an overflow inside\n_badblocks_clear() in block/badblocks.c.\n\nAlthough there are many places to call badblocks APIs, the non-zero\nshift value is only used in super_1_load(), other places always use 0 as\nthe shift value. Therefore it is unnecessary to do a general shift value\noverflow check inside badblock API, and just check here as the caller.\n\nThis may avoid unnecessary check, make the badblocks API code more simple\nand elegant.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 94c820d99a4305d4ded41a97ed37ec7d26c56e7f",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 573fb68105fdc6a127ba6069e58a0d2aff3c9f93",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 323f3a056dbccb39a642ebde642044a680f3a6d6",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 0a03f9541c06fda64301dcf94f376f07ce2cc396",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 75d15738fd33a782606d0dc80cfeff47edf2ddd8",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 3b097416b4cff77285c1f472fc2c4058d8a7554f",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c df7d4d011d5ace20699ea948712f09f9ac08924f",
          "\u003e= 2699b67223aca6b1450fc2f72e40fada952afc85, \u003c 35d522bd32462afcf1981dab6da8a9256c26c1e0"
        ],
        "fixed_in": [
          "94c820d99a4305d4ded41a97ed37ec7d26c56e7f",
          "573fb68105fdc6a127ba6069e58a0d2aff3c9f93",
          "323f3a056dbccb39a642ebde642044a680f3a6d6",
          "0a03f9541c06fda64301dcf94f376f07ce2cc396",
          "75d15738fd33a782606d0dc80cfeff47edf2ddd8",
          "3b097416b4cff77285c1f472fc2c4058d8a7554f",
          "df7d4d011d5ace20699ea948712f09f9ac08924f",
          "35d522bd32462afcf1981dab6da8a9256c26c1e0"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.1"
        ],
        "fixed_in": [
          "0",
          "5.10.270",
          "5.15.221",
          "6.1.188",
          "6.6.157",
          "6.12.109",
          "6.18.50",
          "7.2.4",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 94c820d99a4305d4ded41a97ed37ec7d26c56e7f or 573fb68105fdc6a127ba6069e58a0d2aff3c9f93 or 323f3a056dbccb39a642ebde642044a680f3a6d6 or 0a03f9541c06fda64301dcf94f376f07ce2cc396 or 75d15738fd33a782606d0dc80cfeff47edf2ddd8 or 3b097416b4cff77285c1f472fc2c4058d8a7554f or df7d4d011d5ace20699ea948712f09f9ac08924f or 35d522bd32462afcf1981dab6da8a9256c26c1e0 or later.",
      "Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
