--- license: mit task_categories: - text-classification language: - en tags: - linux-kernel - security - vulnerabilities - code - bugs - software-engineering pretty_name: Linux Kernel Vulnerability Dataset size_categories: - 100K str | None: """Extract the commit ID from a Fixes: tag""" pattern = r'Fixes:\s*([a-f0-9]{12,40})' match = re.search(pattern, commit_msg, re.IGNORECASE) return match.group(1) if match else None ``` ### Filtering - Excluded commits where `Fixes:` tag points to non-existent hash - Excluded merge commits - For lifetime analysis: excluded same-day fixes (lifetime_days = 0) - For lifetime analysis: excluded outliers (lifetime > 10,000 days) ## Limitations - **Selection bias**: Only ~28% of fix commits use `Fixes:` tags. Well-documented bugs (likely more serious) are overrepresented. - **Mainline only**: Doesn't include bugs fixed only in stable branches or vendor kernels. - **Subsystem classification**: Heuristic-based on file paths; some bugs span multiple subsystems. - **Bug type detection**: Keyword-based; many bugs classified as "unknown". - **Timestamp accuracy**: Uses author dates, not commit dates. Rebasing can skew. ## Intended Uses ### Recommended - Training vulnerability detection models (e.g., VulnBERT) - Analyzing bug lifetime patterns across subsystems - Studying the evolution of kernel security over time - Research on code review and testing effectiveness ### Out of Scope - Direct exploit development (commits don't include full code context) - Claiming completeness of kernel vulnerability data ## Citation ```bibtex @dataset{qu2026kernelvuln, author = {Qu, Jenny Guanni}, title = {Linux Kernel Vulnerability Dataset}, year = {2026}, publisher = {HuggingFace}, url = {https://huggingface.co/datasets/quguanni/kernel-vuln-dataset} } ``` ## License MIT License ## Contact - **Author**: Jenny Guanni Qu - **Email**: jenny@pebblebed.com - **Blog post**: [Kernel bugs hide for 2 years on average](https://pebblebed.com/blog/kernel-bugs)