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)
Fri, Oct 10, 11:42 AM
Unknown Object (File)
Fri, Oct 10, 11:42 AM
Unknown Object (File)
Fri, Oct 10, 11:42 AM
Unknown Object (File)
Fri, Oct 10, 4:56 AM
Unknown Object (File)
Sep 19 2025, 9:27 AM
Unknown Object (File)
Sep 19 2025, 6:57 AM
Unknown Object (File)
Sep 19 2025, 4:35 AM
Unknown Object (File)
Sep 13 2025, 5:27 AM
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