Page MenuHomeFreeBSD

unix/*: check new control size in unp_internalize()
ClosedPublic

Authored by glebius on May 25 2022, 7:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 3:15 AM
Unknown Object (File)
Wed, Mar 18, 2:12 AM
Unknown Object (File)
Wed, Mar 4, 6:03 AM
Unknown Object (File)
Feb 9 2026, 2:28 PM
Unknown Object (File)
Jan 23 2026, 5:56 AM
Unknown Object (File)
Dec 26 2025, 7:14 AM
Unknown Object (File)
Dec 6 2025, 2:53 AM
Unknown Object (File)
Nov 25 2025, 6:19 AM
Subscribers

Details

Summary

Now that we call sbcreatecontrol() with M_WAITOK, we are expected to
pass a valid size. Return same error code, we are returning for an
oversized control from sockargs().

Diff Detail

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

Event Timeline

markj added inline comments.
sys/kern/uipc_usrreq.c
2244
2249

I'm not sure this is truly insane. libcasper can provoke such situations.

This revision is now accepted and ready to land.May 25 2022, 7:43 PM