DF-0413
Primitive parse functions write to output buffer without checking *buflen: missing defense-in-depth bounds check
Summary
ng_int8/16/32/64_parse(:346,:445,:547,:645) + string_parse(:741) + sizedstring_parse(:912): bcopy value to buf without checking *buflen>=sizeof(value). Contrast getDefault() functions DO check(:392 ERANGE). Caller ng_parse_composite only guarantees vlen>=1. Latent OOB write if caller provides undersized buffer. Defense-in-depth.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0413 Β· 1 files| File | Type | Description | Size | |
|---|---|---|---|---|
| manifest.json | file | 398 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/netgraph7/netgraph/ng_parse.c:332: primitive parse functions write to buffer without checking *buflen
Verified recommended fix
Source-confirmed at sys/netgraph7/netgraph/ng_parse.c:332: primitive parse functions write to buffer without checking *buflen
Verdict
Source-confirmed at sys/netgraph7/netgraph/ng_parse.c:332: primitive parse functions write to buffer without checking *buflen
No comments yet.