Page MenuHomeFreeBSD

netlink: Fully clear parser state between messages
ClosedPublic

Authored by des on Jul 30 2025, 1:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 8, 8:40 PM
Unknown Object (File)
Sun, Sep 6, 6:08 AM
Unknown Object (File)
Sun, Sep 6, 1:16 AM
Unknown Object (File)
Sat, Sep 5, 5:01 PM
Unknown Object (File)
Sat, Sep 5, 5:01 PM
Unknown Object (File)
Sat, Sep 5, 3:30 PM
Unknown Object (File)
Sat, Sep 5, 10:05 AM
Unknown Object (File)
Fri, Sep 4, 2:34 PM
Subscribers

Details

Summary

Failing to reset the cookie between messages can lead to an attempt
to interpret a zeroed buffer as a struct nlattr, causing a length
calculation to underflow, resulting in a memcpy() call where the
length exceeds the actual size of the buffer.

MFC after: 1 week
PR: 283797

Diff Detail

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