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
F102423667: D35317.diff
Tue, Nov 12, 2:07 AM
Unknown Object (File)
Fri, Nov 1, 11:15 PM
Unknown Object (File)
Fri, Nov 1, 11:14 PM
Unknown Object (File)
Fri, Nov 1, 11:14 PM
Unknown Object (File)
Fri, Nov 1, 10:51 PM
Unknown Object (File)
Sun, Oct 20, 5:57 PM
Unknown Object (File)
Oct 2 2024, 9:22 PM
Unknown Object (File)
Sep 28 2024, 2:35 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