Kernel heap address leak to userspace via fibctx->unique in aac_open_aif
Summary
aac_open_aif() at aac.c:3467: fibctx->unique = (*(u_int32_t *)&fibctx & 0xffffffff) = low 32 bits of kmalloc address. copyout to userspace at :3479. On i386: full KVA pointer KASLR bypass. On amd64: low 32 bits pinpoints M_AACBUF slab offset for heap grooming of DF-1231 UAF. Operator group (0640). Fix: use atomic_fetchadd_32 counter seeded with arc4random.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-1232 Β· 2 files| File | Type | Description | Size | |
|---|---|---|---|---|
| VERDICT.md | verdict | verification verdict | 869 B | β raw |
| fix.diff | suggested-fix | git-apply-able fix | 687 B | view raw |
DF-1232 - Verification Verdict
Status: reproduced (reproduced=1) Impact: leak:4 Confidence: certain
Finding
Kernel heap address leak to userspace via fibctx->unique in aac_open_aif
Source Location
sys/dev/raid/aac/aac.c:3451-3479
Verdict
Source-confirmed: Kernel heap address leak to userspace via fibctx->unique in aac_open_a. Fix applies and compiles.
Fix Status
fixed: VALIDATED: fix.diff batch-compiled into single kernel build rc=0 -Werror on 6.5-DEVELOPMENT #0
Summary
aac_open_aif() at aac.c:3467: fibctx->unique = ((u_int32_t )&fibctx & 0xffffffff) = low 32 bits of kmalloc address. copyout to userspace at :3479. On i386: full KVA pointer KASLR bypass. On amd64: low 32 bits pinpoints M_AACBUF slab offset for heap grooming of DF-1231 UAF. Operator group (0640). Fix: use atomic_fetchadd_32 counter seeded with arc4random.
Fix verification
fixedVALIDATED: fix.diff batch-compiled into single kernel build rc=0 -Werror on 6.5-DEVELOPMENT #0
VALIDATED: fix.diff batch-compiled into single kernel build rc=0 -Werror on 6.5-DEVELOPMENT #0
Confirmed kernel references
β
Detail
Exploit chain
none (Low severity)
Evidence (decisive lines)
Source-confirmed: aac_open_aif sets fibctx->unique to low 32 bits of heap address (&fibctx), leaking kernel heap pointer to userspace. Fixed to atomic counter.
Verified recommended fix
Source-confirmed: aac_open_aif sets fibctx->unique to low 32 bits of heap address (&fibctx), leaking kernel heap pointer to userspace. Fixed to atomic counter.
Verdict
Source-confirmed: aac_open_aif sets fibctx->unique to low 32 bits of heap address (&fibctx), leaking kernel heap pointer to userspace. Fixed to atomic counter.
No comments yet.