[Certificate] DRVFuzz for RISC-V Processor Bug Detection - Zehong Yu

Open
#116 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
5/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
scala
Domain
security

Research direction

This is a certificate submission, not a task: it names no file to change and asks for no edit. It refers to the RAS enable path behind sbpctl.RAS_ENABLE in XiangShan issue #6149, which the body says was fixed in PR #6461 and merged. A newcomer has nothing to start from here; the reference points to the upstream issue and PR for context.

Written by the indexing model from the issue text.

Description

1. Contribution Direction

xiangshan-security

2. Related Project Link

https://github.com/OpenXiangShan/XiangShan/issues/6149

3. Related Organization

Wingtecher Group, Tsinghua University

4. Contribution Description
Contribution Description

I identified and reported a security vulnerability in the branch prediction unit (BPU) of XiangShan Kunminghu-V3 (Issue #6149), where disabling the return-address stack (RAS) predictor through sbpctl.RAS_ENABLE failed to prevent the frontend from using RAS/URAS prediction targets.

I conducted RTL-level analysis to identify missing enable checks in the RAS/URAS control logic and return-target selection paths. To demonstrate the security impact, I developed a reproducible RISC-V assembly proof-of-concept (PoC) that uses a memory-loaded secret bit to influence speculative instruction fetches even when RAS prediction is explicitly disabled.

I also implemented automated reproduction scripts, waveform monitoring tools, and differential validation procedures. Experimental results confirmed that both secret-bit configurations successfully triggered distinct wrong-path instruction fetches while RAS_ENABLE=0, demonstrating a potential speculative-execution side-channel vulnerability.

I provided detailed root-cause analysis, reproduction instructions, execution logs, and supporting artifacts to help the maintainers investigate and resolve the issue. The vulnerability was subsequently addressed by the XiangShan development team in PR #6461, which was merged into the kunminghu-v3 branch on September 14, 2026.

References:

5. Applicant Name

Zehong Yu

6. Contact Information

[email protected]

Confirmation
  • I confirm that the information provided is accurate and my contribution is original.
  • I agree that my contribution details may be reviewed and verified by the maintainers.
Dominant language
Scala
Stars
63
Forks
58
Avg merge
4d 20h
Merged PRs (30d)
49

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenXiangShan/XiangShanLab

All issues in OpenXiangShan/XiangShanLab

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.