DF-3246 / verdict.json
{ "finding_id": "DF-3246", "status": "reproduced", "reproduced": 1, "impact": "none", "confidence": "certain", "verdict": "Reproduced on the stock INVARICTIONS guest with a minimal crafted plain ISO9660 image (no RRIP/Joliet) holding one file stored as NAME;1: stat(/mnt/NAME;4294967297) SUCCEEDS (returns the inode of NAME;1) while the controls behave correctly - NAME;2 -> ENOENT, NAME;4294967298 (wraps to 2) -> ENOENT, NAME;0000000001 (10-digit but i==1) matches legitimately. 4294967297 = 2^32+1 wraps the int accumulator at cd9660_util.c:118 (i = i*10 + *fn++ - 0) to 1, matching the image-side j=1 via return i - j (:127); cd9660_lookup.c:233 treats 0 as an exact match. Signed overflow is UB; on this compiler it wraps. Post-fix A/B on F40FIX: NAME;4294967297 -> ENOENT (version field refused as too large).", "exploit_chain": "", "evidence": "VERDICT.md with path:line citations; run.log where a live demo exists; fix.diff", "kernel_refs": [ "sys/vfs/isofs/cd9660/cd9660_util.c:118", "sys/vfs/isofs/cd9660/cd9660_util.c:123", "sys/vfs/isofs/cd9660/cd9660_util.c:127", "sys/vfs/isofs/cd9660/cd9660_lookup.c:233" ], "poc_changes": "image generator written (host python): PVD@16/VDST@17/root@32/data@33; first two generator attempts had wrong root-record offset (must be PVD byte 156) and wrong dirrec length byte - fixed", "attempts": 1, "guest_uname": "DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul 2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64", "runtime_sec": 15, "guest_dirty": 0, "build_cmd": "see build.sh", "run_cmd": "see run.sh", "code_hash": "e6a983221561ce2d6721b17e102cdc9cac8681cfa82fb104aceb3f81715e7089", "notes": "", "recommended_fix": "refuse version fields whose accumulation would overflow int (both user and image sides)", "fix_status": "fixed", "fix_verdict": "A/B complete: NAME;4294967297 now ENOENT on F40FIX (was a false-positive match on stock); NAME;1 still resolves (no regression)." } |