CVE-2026-74751
Received Received - Intake

Linux kernel ZBB strnlen boundary read fix

Vulnerability report for CVE-2026-74751, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-26

Last updated on: 2026-08-26

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-26
Last Modified
2026-08-26
Generated
2026-08-26
AI Q&A
2026-08-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a flaw in the ZBB-optimized strnlen function. The issue occurs when the function loads a word beyond the intended memory boundary, potentially causing a page fault if the next page is unmapped. The fix adjusts the boundary calculation to prevent reading past the valid memory range.

Detection Guidance

This vulnerability is specific to the Linux kernel's riscv architecture implementation and relates to a memory access issue in the ZBB-optimized strnlen function. Detection requires checking if your system is running a vulnerable kernel version. Use uname -a to check the kernel version and compare it against patched versions. No direct network detection commands are applicable as this is a local kernel issue.

Impact Analysis

This vulnerability could lead to system crashes or instability if exploited, particularly in systems using RISC-V architecture with the affected kernel code. It may cause unexpected behavior or denial of service in applications relying on strnlen.

Mitigation Strategies

Immediate mitigation involves updating the Linux kernel to a version that includes the fix for this issue. Check your distribution's security advisories for patched kernel packages. If no patch is available, consider temporarily disabling ZBB optimizations in the kernel configuration as a workaround until an official fix is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74751. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart