CVE-2026-74751
Last modified
CVE-2026-74751 is a critical-severity vulnerability rated 9.4/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: riscv: lib: Fix ZBB strnlen reading past count boundary The ZBB-optimized strnlen loop loads one word ahead before checking the aligned boundary: REG_L t1, SZREG(t0) // load next word addi t0, t0, SZREG // advance orc.b t1, t1 bgeu t0, t4, 4f // boundary check AFTER load where t4 = (s + count) & -SZREG. When s is aligned and count is a multiple of SZREG, t4 equals s + count and the loop loads a full word starting at exactly s + count.
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: lib: Fix ZBB strnlen reading past count boundary The ZBB-optimized strnlen loop loads one word ahead before checking the aligned boundary: REG_L t1, SZREG(t0) // load next word addi t0, t0, SZREG // advance orc.b t1, t1 bgeu t0, t4, 4f // boundary check AFTER load where t4 = (s + count) & -SZREG. When s is aligned and count is a multiple of SZREG, t4 equals s + count and the loop loads a full word starting at exactly s + count. If s + count falls on a page boundary with the next page unmapped, this faults. Fix by computing the aligned boundary from the last valid byte (s + count - 1) instead of s + count. This makes the loop stop at the word containing the last valid byte rather than potentially loading the word after it. The count == 0 case is already handled by the beqz early exit. Also add a pre-loop guard (bgeu t0, t4) for the case where all valid bytes fit within the first word. With the adjusted boundary, t4 can equal t0, and entering the loop with stale register state from the first-word processing would produce incorrect results. The final minu clamp ensures the result is still correct when the last loaded word extends past s + count - 1 within the same aligned word.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 5ba15d419fab848a3813eb56bbcad00e291fbc49, < e697e30f3dd2da3a1df7dc0980546d5b53aea4b6; >= 5ba15d419fab848a3813eb56bbcad00e291fbc49, < 5d588c684833e678a0008eb69c33190f01a65f4b |
| Linux | Linux | 7.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-74751?
How severe is CVE-2026-74751?
How do I fix CVE-2026-74751?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-74745In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-74746In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-74747In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-74748In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-7475The Sky Addons plugin for WordPress is vulnerable to Stored …6.4
- CVE-2026-74750In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-74752In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-74753In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-74754In the Linux kernel, the following vulnerability has been re…
- CVE-2026-74755An integer underflow in the mcpack2pb component of Apache bR…7.5
- CVE-2026-74756Some docker-compose shipped by the project exposes by defaul…9.1
- CVE-2026-74757Uncontrolled resource allocation in the mcpack2pb component …7.5
Are you affected by CVE-2026-74751?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
