DrvHorn finds 424 new reference counting bugs in Linux kernel drivers
DrvHorn can automatically detect reference counting bugs in Linux kernel drivers, uncovering hundreds of previously unknown issues
Software arXiv 13 May 2026 Measurement Prototype evidence
Published as “Automatic Detection of Reference Counting Bugs in Linux Kernel Drivers”
Why it matters
DrvHorn’s detections led to dozens of kernel patches, directly improving Linux driver reliability.
Summary
DrvHorn automatically found refcount bugs in Linux kernel drivers, reporting 777 bugs across 3387 platform drivers and confirming 545 as real, which yields a false positive rate of 29.9%. It uncovered 424 previously unknown bugs and contributed 45 patches that were merged into the mainline kernel. The tool relies on modeling and aggressive program slicing to make CHC-based verification scalable, but it timed out on 807 drivers and is not sound nor complete, missing some bugs.
What they found 3
- Out of 3387 platform drivers, DrvHorn timed out on 807 and reported refcount bugs in 777 of them.
“Out of 3387 platform drivers, DrvHorn timed out on 807 and reported refcount bugs in 777 of them.”
- Manual inspection confirmed 545 real bugs, resulting in 232 false positives (29.9%).
“Manual inspection confirmed 545 as real bugs, resulting in 232 (29.9%) false positives.”
- SeaBMC (bounded model checking) missed 215 bugs (39.4%) and timed out on 132 (24.2%) for the same driver set.
“SeaBMC missed 215 (39.4%) and timed out on 132 (24.2%), including the bug in Figure 1.”
Caveats 8
- The tool timed out on 807 drivers (23.8% of the evaluated set), limiting coverage.
- It is neither sound nor complete, potentially missing bugs and reporting false ones.
- Only 27 of the 232 false positives were caused by slicing unsoundness; the rest stem from conservative pointer analysis.
- A known refcount bug was missed due to slicing not handling indirect information flow.
- DrvHorn is neither sound nor complete: it may miss a bug and also report a false bug.
- The analysis of other parts is left for future work.
- Our slicing policy does not consider indirect information flow.
- Drivers with multiple/nested loops tend to time out.
What’s new here 4
- Reduces refcount verification to an assertion checking problem using the driver initialization interface.
- Applies custom kernel API modeling and aggressive slicing to handle the full Linux kernel codebase.
- Integrates with off-the-shelf CHC solvers (SeaHorn) rather than building a dedicated verifier.
- Focuses on driver initialization error paths to achieve high accuracy with low false positives.