{
  "id": "CVE-2026-74751",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-74751",
  "published_at": "2026-08-26T14:36:58.954Z",
  "title": "riscv: lib: Fix ZBB strnlen reading past count boundary",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/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\nriscv: lib: Fix ZBB strnlen reading past count boundary\n\nThe ZBB-optimized strnlen loop loads one word ahead before checking the\naligned boundary:\n\n    REG_L   t1, SZREG(t0)       // load next word\n    addi    t0, t0, SZREG       // advance\n    orc.b   t1, t1\n    bgeu    t0, t4, 4f          // boundary check AFTER load\n\nwhere t4 = (s + count) \u0026 -SZREG.  When s is aligned and count is a\nmultiple of SZREG, t4 equals s + count and the loop loads a full word\nstarting at exactly s + count.  If s + count falls on a page boundary\nwith the next page unmapped, this faults.\n\nFix by computing the aligned boundary from the last valid byte\n(s + count - 1) instead of s + count.  This makes the loop stop at the\nword containing the last valid byte rather than potentially loading the\nword after it.  The count == 0 case is already handled by the beqz\nearly exit.\n\nAlso add a pre-loop guard (bgeu t0, t4) for the case where all valid\nbytes fit within the first word.  With the adjusted boundary, t4 can\nequal t0, and entering the loop with stale register state from the\nfirst-word processing would produce incorrect results.\n\nThe final minu clamp ensures the result is still correct when the last\nloaded word extends past s + count - 1 within the same aligned word.",
  "cvss_by_source": {
    "cna": 9.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 5ba15d419fab848a3813eb56bbcad00e291fbc49, \u003c e697e30f3dd2da3a1df7dc0980546d5b53aea4b6",
          "\u003e= 5ba15d419fab848a3813eb56bbcad00e291fbc49, \u003c 5d588c684833e678a0008eb69c33190f01a65f4b"
        ],
        "fixed_in": [
          "e697e30f3dd2da3a1df7dc0980546d5b53aea4b6",
          "5d588c684833e678a0008eb69c33190f01a65f4b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "7.1"
        ],
        "fixed_in": [
          "0",
          "7.1.10",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e697e30f3dd2da3a1df7dc0980546d5b53aea4b6 or 5d588c684833e678a0008eb69c33190f01a65f4b or later.",
      "Upgrade Linux to 0 or 7.1.10 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
