DF-0230
table_blocks computed before entries/entsz validation (fragile ordering)
Summary
entries*entsz multiply at :134 computed BEFORE bounds check at :136-139. Currently safe: post-check forces entries<=128 entsz<=MAXBSIZE/entries -> product <=65536. But future relaxation of MAX_GPT_ENTRIES -> 32-bit overflow -> undersized buffer -> heap OOB. Fragile.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0230 Β· 1 files| File | Type | Description | Size | |
|---|---|---|---|---|
| manifest.json | file | 389 B | view raw |
Fix verification
not_testablebaseline reproducedβ patch + rebuild βpatched clean
recommended fix identified; fix.diff not authored/validated in this batch
recommended fix identified; fix.diff not authored/validated in this batch
combined build rc=0
Confirmed kernel references
β
Detail
Exploit chain
none (Info severity)
Evidence (decisive lines)
Source-confirmed at sys/kern/subr_diskgpt.c:131: table_blocks computed before entries/entsz validation
Verified recommended fix
Source-confirmed at sys/kern/subr_diskgpt.c:131: table_blocks computed before entries/entsz validation
Verdict
Source-confirmed at sys/kern/subr_diskgpt.c:131: table_blocks computed before entries/entsz validation
No comments yet.