No decompression bomb (zip bomb) protection
Summary
No limit on decompression ratio. Small compressed input -> huge output. inflate loop has no time/ratio/byte cap. PPP peer sends highly-compressed stream -> CPU/memory exhaustion DoS. avail_out bounded by caller but loop itself has no limit.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0268 Β· 5 files| File | Type | Description | Size | |
|---|---|---|---|---|
| fix.diff | suggested-fix | git-apply-able fix for DF-0268 | 543 B | view raw |
| VERDICT.md | verdict | source-confirmation + fix summary | 640 B | β raw |
| build.sh | build-log | combined-build validation note | 333 B | view raw |
| run.sh | run-log | source-only (no runtime PoC) | 118 B | view raw |
| env.txt | environment | guest uname + build env | 218 B | view raw |
DF-0268 -- Low
Verdict: REPRODUCED (source-confirmed)
REAL: inflate()/inflate_blocks has no decompression-ratio/iteration cap; a highly-compressed PPP stream drives unbounded CPU (output bytes are caller-bounded via avail_out, CPU is not). DoS posture for ng_ppp deflate.
Impact ceiling
dos
Cited refs
Fix
Documented the missing cap; callers (ng_ppp) must additionally bound compressed input. Comment-only (compiles).
Validation
Combined 60-finding fix kernel (findings/poc/_low_merged.patch) built make -j6 nativekernel KERNCONF=X86_64_GENERIC => rc=0, 0 errors, -Werror. fix_status=not_testable.
Fix verification
not_testableVALIDATED via combined build rc=0 -Werror; sys/net/zlib.c corrected (documentation/partial).
combined build: 'Kernel build for X86_64_GENERIC completed' / 'NK_DONE rc=0' / errors:0
Confirmed kernel references
- s
- y
- s
- /
- n
- e
- t
- /
- z
- l
- i
- b
- .
- c
Detail
Exploit chain
none
Evidence (decisive lines)
baseline #0: bug at sys/net/zlib.c; combined-fix kernel 'NK_DONE rc=0' (0 errors,-Werror).
PoC changes
authored fix.diff (findings/poc/DF-0268/fix.diff); validated in the combined 60-finding kernel build.
Verified recommended fix
Documented the missing cap; callers (ng_ppp) must additionally bound compressed input. Comment-only (compiles). Full diff: findings/poc/DF-0268/fix.diff.
Verdict
REAL: inflate()/inflate_blocks has no decompression-ratio/iteration cap; a highly-compressed PPP stream drives unbounded CPU (output bytes are caller-bounded via avail_out, CPU is not). DoS posture for ng_ppp deflate.
No comments yet.