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)
Tue, Aug 11, 5:20 AM
Unknown Object (File)
Mon, Aug 10, 10:21 AM
Unknown Object (File)
Mon, Aug 10, 3:46 AM
Unknown Object (File)
Sat, Aug 8, 12:45 AM
Unknown Object (File)
Thu, Jul 30, 5:41 PM
Unknown Object (File)
Tue, Jul 21, 8:08 AM
Unknown Object (File)
Sun, Jul 19, 9:53 PM
Unknown Object (File)
Sun, Jul 19, 6:44 PM
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