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)
Sat, Dec 6, 2:53 AM
Unknown Object (File)
Tue, Nov 25, 6:19 AM
Unknown Object (File)
Nov 24 2025, 11:31 PM
Unknown Object (File)
Nov 15 2025, 7:32 AM
Unknown Object (File)
Nov 15 2025, 4:57 AM
Unknown Object (File)
Nov 15 2025, 4:17 AM
Unknown Object (File)
Nov 15 2025, 2:29 AM
Unknown Object (File)
Nov 15 2025, 12:07 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