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, Oct 11, 1:30 AM
Unknown Object (File)
Aug 14 2025, 11:17 PM
Unknown Object (File)
Aug 14 2025, 4:01 AM
Unknown Object (File)
Jul 27 2025, 2:19 AM
Unknown Object (File)
Jul 7 2025, 8:09 PM
Unknown Object (File)
Jul 7 2025, 1:17 AM
Unknown Object (File)
Jul 6 2025, 1:49 PM
Unknown Object (File)
Jun 26 2025, 3:37 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