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, Apr 21, 8:19 PM
Unknown Object (File)
Mon, Apr 21, 7:14 PM
Unknown Object (File)
Mon, Apr 21, 6:10 PM
Unknown Object (File)
Mon, Apr 21, 6:03 PM
Unknown Object (File)
Mon, Apr 21, 5:41 PM
Unknown Object (File)
Mar 20 2025, 5:58 PM
Unknown Object (File)
Jan 20 2025, 11:27 AM
Unknown Object (File)
Jan 20 2025, 11:12 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45705
Build 42593: arc lint + arc unit

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