[Certificate] DRVFuzz for RISC-V Processor Bug Detection - Zehong Yu
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- Over a week
- Newbie friendliness
- 5/100
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:
- Issue: https://github.com/OpenXiangShan/XiangShan/issues/6149
- Fix PR: https://github.com/OpenXiangShan/XiangShan/pull/6461
5. Applicant Name
Zehong Yu
6. Contact Information
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenXiangShan/XiangShanLab
-
[TASK] 香山 Issue #6467:inactive vector store 导致 StoreQueue 指针异常Possibly taken @wyzzsksaa claimed this 10 days ago. Openfix bug task
Difficulty 5/5 Over a week Newbie friendliness 30/100
OpenXiangShan/XiangShanLab#186 · 5 comments · 1 assignee ·
Maintainers usually reply within 5 days
-
[TASK] 香山 Issue #6650:ta 策略下整数乘加丢失累加器Possibly taken @10leaf claimed this 4 days ago. Openfix bug task
Difficulty 5/5 Over a week Newbie friendliness 18/100
OpenXiangShan/XiangShanLab#184 · 5 comments · 1 assignee ·
Maintainers usually reply within 5 days
-
fix bug task
Difficulty 5/5 Over a week Newbie friendliness 35/100
OpenXiangShan/XiangShanLab#183 · 1 comment ·
Maintainers usually reply within 5 days
-
fix bug task
Difficulty 5/5 Over a week Newbie friendliness 35/100
OpenXiangShan/XiangShanLab#182 · 1 comment ·
Maintainers usually reply within 5 days
-
fix bug task
Difficulty 5/5 Over a week Newbie friendliness 35/100
OpenXiangShan/XiangShanLab#181 · 1 comment ·
Maintainers usually reply within 5 days
All issues in OpenXiangShan/XiangShanLab
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
com-lihaoyi/mill#7998 ·
Maintainers usually reply within 1 day