|
| 1 | +# Bugs scoring |
| 2 | + |
| 3 | +Until triaged we don't really know the bug impact. |
| 4 | +But we can learn a lot from the bug title. |
| 5 | + |
| 6 | +Syzbot scoring is based on our understanding of what bug class |
| 7 | +looks historically more impactful. |
| 8 | +It allows to prioritize the triaging queue. |
| 9 | + |
| 10 | +## Heuristics |
| 11 | + |
| 12 | +### KASAN > KMSAN > KCSAN |
| 13 | +KASAN detected bugs are typically more dangerous than KMSAN detected bugs. |
| 14 | +And KMSAN detected bugs are typically more dangerous than KCSAN detected bugs. |
| 15 | + |
| 16 | +### Use-after-free write > invalid-free(double-free) > use-after-free read. |
| 17 | + |
| 18 | +### KASAN write > KASAN read |
| 19 | +KASAN write indicates an out-of-bounds or use-after-free write operation. |
| 20 | +Any uncontrolled write to kernel memory is extremely dangerous |
| 21 | +because it can corrupt data or code pointers, making it a |
| 22 | +high-value target for exploitation leading to system compromise. |
| 23 | +KASAN read indicates an out-of-bounds or use-after-free read. |
| 24 | +This is generally less critical. It can crash the system (DoS) |
| 25 | +or leak sensitive data, but it doesn't provide a direct path for an |
| 26 | +attacker to execute their own code. |
| 27 | + |
| 28 | +### Memory Safety bugs > DoS bugs. |
| 29 | +This heuristic establishes a broad priority between two major classes of bugs based on their ultimate impact. |
| 30 | + |
| 31 | +Memory Safety bugs: This category includes all the issues mentioned above—use-after-free, double-free, out-of-bounds reads/writes, etc. These are considered more severe because they represent a potential system compromise. A successful exploit can allow an attacker to escalate privileges and gain complete control over the kernel and the entire system. |
| 32 | + |
| 33 | +DoS bugs (Denial of Service): This category includes bugs like kernel hangs, crashes, or resource exhaustion (e.g., memory leaks). While they are serious because they disrupt system availability, they typically do not allow an attacker to execute code or steal data. The impact is usually temporary and can be resolved by rebooting the system. They disrupt the service but don't compromise its integrity. |
| 34 | + |
| 35 | +### Information Leaks > Denial of Service (DoS) |
| 36 | +Kmsan infoleak and other bugs that leak kernel memory are generally |
| 37 | +more severe than a typical DoS. These leaks can be used to bypass |
| 38 | +security mitigations like Kernel Address Space Layout Randomization (KASLR), |
| 39 | +which makes exploiting other vulnerabilities easier. |
| 40 | + |
| 41 | +### Concurrency Issues > Simple DoS |
| 42 | +Bugs like DataRace and LockdepBug can be more critical than a standard DoS. |
| 43 | +Data races can lead to unpredictable behavior, including memory corruption, |
| 44 | +which might be exploitable. |
| 45 | + |
| 46 | +LockdepBug indicates potential deadlocks, |
| 47 | +which can cause a more severe system Hang than a resource-exhaustion DoS. |
| 48 | + |
| 49 | +### KFENCE reports are high priority |
| 50 | +KFENCE is a lighter-weight memory safety detector compared to KASAN. |
| 51 | +While it may have a lower performance overhead, the bugs it finds |
| 52 | +(use-after-free, out-of-bounds) are of the same high-impact nature |
| 53 | +as those found by KASAN. |
| 54 | +Therefore, KFENCE detected bugs should be treated with a similar level |
| 55 | +of urgency as KASAN reports. |
| 56 | + |
| 57 | +### UBSAN reports require careful evaluation |
| 58 | +The Undefined Behavior Sanitizer (UBSAN) can detect a wide range |
| 59 | +of issues. Their severity can vary greatly: |
| 60 | + |
| 61 | +1. A shift-out-of-bounds or array-index-out-of-bounds issue |
| 62 | +can be very severe if it leads to memory corruption. |
| 63 | +2. An integer-overflow can also be critical if it results in bypassing |
| 64 | +security checks and leads to a buffer overflow. |
| 65 | +3. Other UBSAN issues might be less critical but still indicate latent |
| 66 | +bugs that could become problematic. |
| 67 | + |
| 68 | +### LockdepSleeping in Atomic Context is a critical flaw |
| 69 | +AtomicSleep is a serious bug that can lead to system-wide hangs |
| 70 | +and instability. This is because holding a spinlock or being in |
| 71 | +another atomic context while sleeping can cause deadlocks. |
| 72 | + |
| 73 | +These are generally more severe than a typical DoS. |
| 74 | + |
| 75 | +### Memory Leaks are a form of DoS |
| 76 | +MemoryLeak bugs are a type of denial of service where the kernel |
| 77 | +gradually runs out of memory. While generally less severe than |
| 78 | +memory corruption, a fast memory leak that can be triggered by |
| 79 | +an unprivileged user can be a high-impact DoS vector. |
0 commit comments