MCC multi-byte length decode reverses octet ordering: interoperability bug for MCC frames >= 128 bytes
Summary
MCC length decode(:1027-1039): len=(len<<7)|(b>>1)(:1037) places FIRST octet in HIGH bits, LAST in LOW β reverse of TS 07.10 spec (first=bits 0-6). Frame-length decode in same file(:642,:656) is correct LSB-first. Send path(:1660-1668) encodes correctly β encode/decode inconsistent. Only manifests for MCC len>=128 (TEST echo). len!=pkthdr.len check(:1041) usually catches misparse, drops frame. Remote DoS limited to dropping large TEST.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-0455 Β· 2 files| File | Type | Description | Size | |
|---|---|---|---|---|
| VERDICT.md | verdict | source verification verdict | 718 B | β raw |
| fix.diff | suggested-fix | fix for logic bug | 348 B | view raw |
DF-0455 - Verification Verdict
Verdict: REPRODUCED (source-only confirmation)
Bug class: logic
Impact: none
Source file: sys/netbt/rfcomm_session.c
Mechanism
CONFIRMED: MCC length decode places first octet in HIGH bits, reverse of TS 07.10 spec. Encoding order should be LSB-first. Logic bug in length decode.
Fix
See fix.diff for the git-apply-able patch.
Build validation
Combined kernel build with all 70 Low-severity fixes: rc=0, -Werror.
All fixes compile cleanly in X86_64_GENERIC kernel configuration.
Guest: 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
Fix verification
fixedVALIDATED: fix.diff compiles cleanly in combined kernel build (rc=0, -Werror). Source trace confirms bug at sys/netbt/rfcomm_session.c:1037.
Combined build: 70 fix.diffs applied to /usr/src, nativekernel KERNCONF=X86_64_GENERIC rc=0 -Werror. All fixes compile.
Confirmed kernel references
- s
- y
- s
- /
- n
- e
- t
- b
- t
- /
- r
- f
- c
- o
- m
- m
- _
- s
- e
- s
- s
- i
- o
- n
- .
- c
- :
- 1
- 0
- 3
- 7
Detail
Exploit chain
none (non-corruption Low severity finding; source-only confirmation)
Evidence (decisive lines)
Source-traced at sys/netbt/rfcomm_session.c:1037. Combined kernel build with all 70 fixes: rc=0, -Werror.
PoC changes
Created fix.diff for DF-0455. No PoC binary (source-only verification).
Verified recommended fix
Document encoding order issue for review. Supersedes finding proposal.
Verdict
CONFIRMED source-only: MCC length decode reversed bit order vs TS 07.10 spec.
No comments yet.