Feature Slice Matching for Precise Bug Detection
Measuring the function similarity to detect bugs is effective, but the statements unrelated to the bugs can impede the performance due to the noise interference. Suppressing the noise interference in existing works does not manage the tough job, i.e., eliminating the noise in the targets. In this paper, we propose MATUS to mitigate the target noise for precise bug detection based on similarity measurement. Feature slices are extracted from both the buggy query and the targets to represent the semantic feature of (potential) bug logics. In particular, MATUS guides the target slicing with the prior knowledge from the buggy code, in an end-to-end way to pinpoint the slicing criterion in the targets. All feature slices are embedded and compared based on the vector similarity. Buggy candidates are audited to confirm unknown bugs in the targets. Experiments show that MATUS holds advantages in bug detection for real-world projects with acceptable efficiency. In total, MATUS has spotted 31 unknown bugs in the Linux kernel. All of them have been confirmed by the kernel developers, and 11 have been assigned CVEs.
Authors
- Jianjun Huang (ORCID: https://orcid.org/0000-0003-4403-0060)
- Yuanjun Gong (ORCID: https://orcid.org/0000-0002-4661-904X)
- Bin Liang (ORCID: https://orcid.org/0000-0002-4818-7164)
- Jingzheng Wu (ORCID: https://orcid.org/0000-0001-5561-9829)
- Yanjun Wu (ORCID: https://orcid.org/0000-0002-1823-0459)
- Wei You (ORCID: https://orcid.org/0000-0003-1009-6627)
- Ke Ma (ORCID: https://orcid.org/0009-0005-5732-0122)
Institutions
- University of Trento (IT)
- Chinese Academy of Sciences (CN)
- Institute of Software (CN)
- Renmin University of China (CN)
Publication Details
- Journal
- Proceedings of the ACM on software engineering.
- Published
- 2026-06-30
- DOI
- https://doi.org/10.1145/3797080
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00