β¬’ DragonFlyBSD Kernel Audit
← triage Β· dashboard
DF-0455

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)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0455 Β· 2 files
FileTypeDescriptionSize
VERDICT.md verdict source verification verdict 718 B ↓ raw
fix.diff suggested-fix fix for logic bug 348 B view raw
VERDICT.md verdict source verification verdict
↓ download 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

fixed
baseline reproduced→ patch + rebuild →patched clean

VALIDATED: 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.
↓ fix.diff6.5-DEVELOPMENT #0 (combined-fix build, rc=0 -Werror, Thu Jul 23 04:36:20 UTC 2026)

Confirmed kernel references

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.