Page MenuHomeFreeBSD

pfil: avoid disclosing uninitialized data in pfil ioctls
AcceptedPublic

Authored by chs on Thu, Sep 24, 12:10 AM.
Tags
None
Referenced Files
F174186946: D59957.diff
Thu, Oct 1, 5:48 AM
Unknown Object (File)
Wed, Sep 30, 3:55 AM
Unknown Object (File)
Wed, Sep 30, 12:52 AM
Unknown Object (File)
Tue, Sep 29, 7:36 PM
Unknown Object (File)
Tue, Sep 29, 1:43 PM
Unknown Object (File)
Sun, Sep 27, 8:30 PM
Unknown Object (File)
Thu, Sep 24, 5:07 PM
Unknown Object (File)
Thu, Sep 24, 4:22 PM

Details

Reviewers
imp
glebius
Summary

Use M_ZERO when allocating the temporary memory in pfilioc_listheads()
and pfilioc_listhooks(). these buffers are not necessarily completely
initialized before being copied out to userland.
Found with KMSAN.

Sponsored by: Netflix
Assisted-By: Claude Code - Opus 5 (1M context)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77241
Build 74124: arc lint + arc unit