Skip to content

Commit efb3e89

Browse files
koczkatamastarasmadan
authored andcommitted
pkg/report: double-free is at least as severe UAF write
Double-free is at least as severe as a UAF write because in case of UAF write, the vulnerable object is given and you have to find the right victim object - the writable offset and size needs to match. In case of double-free you can choose both your victim and attacker object, giving more options for a successful exploitation (there are attacker objects which can basically write all offset and sizes). This assumes that double-free is controlled in a way that the attacker can spray a victim object between the two `kfree()`s.
1 parent 3d10086 commit efb3e89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/report/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ prioritize the triaging queue.
1111
KASAN detected bugs are typically more dangerous than KMSAN detected bugs. And KMSAN detected bugs are typically more
1212
dangerous than KCSAN detected bugs.
1313

14-
### Use-after-free write > invalid-free(double-free) > use-after-free read.
14+
### Invalid-free (double-free) >= use-after-free write > use-after-free read.
1515

1616
### KASAN write > KASAN read
1717
KASAN write indicates an out-of-bounds or use-after-free write operation. Any uncontrolled write to kernel memory is

pkg/report/impact_score.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
// entries are considered more severe.
1414
var impactOrder = []crash.Type{
1515
// Highest Priority (Direct Memory Corruption - Write)
16+
crash.KASANInvalidFree,
17+
crash.KFENCEInvalidFree,
1618
crash.KASANUseAfterFreeWrite,
1719
crash.KASANWrite,
1820
// High Priority (Memory Corruption)
19-
crash.KASANInvalidFree,
20-
crash.KFENCEInvalidFree,
2121
crash.KFENCEMemoryCorruption,
2222
crash.KASANUseAfterFreeRead,
2323
crash.KMSANUseAfterFreeRead,

0 commit comments

Comments
 (0)