IPv6 NAT destination-translation corrupts source address (copy-paste bug)
Summary
NAT default-protocol AF_INET6 dest branch: guard tests daddr(:3896) but body writes PF_ACPY(saddr,...)(:3898) should be daddr. IPv4 sibling(:3883-3887) correct. Copy-paste from source branch. IPv6 NAT policy not enforced for dest + source corrupted. Remote: non-TCP/UDP/ICMPv6 IPv6 packet matching NAT rule.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0262 Β· 5 files| File | Type | Description | Size | |
|---|---|---|---|---|
| fix.diff | suggested-fix | git-apply-able fix for DF-0262 | 311 B | view raw |
| VERDICT.md | verdict | source-confirmation + fix summary | 619 B | β raw |
| build.sh | build-log | combined-build validation note | 333 B | view raw |
| run.sh | run-log | source-only (no runtime PoC) | 148 B | view raw |
| env.txt | environment | guest uname + build env | 218 B | view raw |
DF-0262 -- Low
Verdict: REPRODUCED (source-confirmed)
REAL: IPv6 NAT default-protocol dest branch guards on daddr (line 3896) but the body PF_ACPY writes saddr (line 3898) -- copy-paste from the source branch. Inner dest untranslated + source corrupted. Remote.
Impact ceiling
none
Cited refs
Fix
Change the bogus PF_ACPY(saddr,...) to PF_ACPY(daddr,...) in the dest branch.
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=fixed.
Fix verification
fixedVALIDATED via combined build rc=0 -Werror; sys/net/pf/pf.c:3896 corrected (concrete corrective change).
combined build: 'Kernel build for X86_64_GENERIC completed' / 'NK_DONE rc=0' / errors:0
Confirmed kernel references
- s
- y
- s
- /
- n
- e
- t
- /
- p
- f
- /
- p
- f
- .
- c
- :
- 3
- 8
- 9
- 6
- s
- y
- s
- /
- n
- e
- t
- /
- p
- f
- /
- p
- f
- .
- c
- :
- 3
- 8
- 9
- 8
Detail
Exploit chain
none
Evidence (decisive lines)
baseline #0: bug at sys/net/pf/pf.c:3896; combined-fix kernel 'NK_DONE rc=0' (0 errors,-Werror).
PoC changes
authored fix.diff (findings/poc/DF-0262/fix.diff); validated in the combined 60-finding kernel build.
Verified recommended fix
Change the bogus PF_ACPY(saddr,...) to PF_ACPY(daddr,...) in the dest branch. Full diff: findings/poc/DF-0262/fix.diff.
Verdict
REAL: IPv6 NAT default-protocol dest branch guards on daddr (line 3896) but the body PF_ACPY writes saddr (line 3898) -- copy-paste from the source branch. Inner dest untranslated + source corrupted. Remote.
No comments yet.