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

ng_bypass rewrites peer back-pointers without topology lock

Summary

ng_bypass(:1207-1225) reassigns hk_peer->hk_peer without TOPOLOGY_WLOCK unlike ng_destroy_hook(:1142). Concurrent reader of hk_peer can observe half-updated pair. Defense-in-depth.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0299 Β· 1 files
FileTypeDescriptionSize
manifest.json file 398 B view raw

Fix verification

not_testable
baseline reproduced→ patch + rebuild →patched clean

recommended fix identified; fix.diff not authored/validated in this batch

recommended fix identified; fix.diff not authored/validated in this batch
combined build rc=0

Confirmed kernel references

β€”

Detail

Exploit chain

none (Info severity)

Evidence (decisive lines)

Source-confirmed at sys/netgraph7/netgraph/ng_base.c:1207: ng_bypass rewrites peer back-pointers without topology lock

Verified recommended fix

Source-confirmed at sys/netgraph7/netgraph/ng_base.c:1207: ng_bypass rewrites peer back-pointers without topology lock

Verdict

Source-confirmed at sys/netgraph7/netgraph/ng_base.c:1207: ng_bypass rewrites peer back-pointers without topology lock