Page MenuHomeFreeBSD

Limit option_len for the TCP_CCALGOOPT option
ClosedPublic

Authored by tuexen on Nov 28 2018, 10:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 29, 6:47 PM
Unknown Object (File)
Sat, Nov 29, 1:16 AM
Unknown Object (File)
Fri, Nov 28, 8:20 AM
Unknown Object (File)
Thu, Nov 20, 8:29 PM
Unknown Object (File)
Thu, Nov 20, 8:27 PM
Unknown Object (File)
Thu, Nov 20, 8:26 PM
Unknown Object (File)
Thu, Nov 20, 8:18 PM
Unknown Object (File)
Sun, Nov 16, 12:43 AM
Subscribers

Details

Summary

When processing the IPPROTO_TCP level socket option TCP_CCALGOOPT, the kernel allocates memory based on the user provided option_len parameter. This option is currently only used by the newreno CC module, where the size used is 8 bytes.

This patch limits the size of allocated memory to 2048 bytes.

This issue was found by using syzkaller.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 21237