Page MenuHomeFreeBSD

altq: Clear stats structures in get_class_stats()
ClosedPublic

Authored by markj on Oct 24 2025, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 30, 10:35 PM
Unknown Object (File)
Sun, Jan 25, 10:09 PM
Unknown Object (File)
Sun, Jan 25, 2:10 PM
Unknown Object (File)
Sun, Jan 25, 12:00 PM
Unknown Object (File)
Mon, Jan 12, 4:11 PM
Unknown Object (File)
Nov 26 2025, 9:21 PM
Unknown Object (File)
Nov 19 2025, 4:46 PM
Unknown Object (File)
Nov 4 2025, 9:44 AM

Details

Summary

These structures are copied out to userspace, and it's possible to leak
uninitialized stack bytes since these routines and their callers weren't
careful to clear them first. Add memsets to avoid this.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable