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)
Mon, May 18, 2:15 PM
Unknown Object (File)
Mon, May 18, 2:08 PM
Unknown Object (File)
Sun, May 17, 10:32 AM
Unknown Object (File)
Sun, May 17, 10:24 AM
Unknown Object (File)
Sun, May 10, 11:15 AM
Unknown Object (File)
Sun, May 10, 11:10 AM
Unknown Object (File)
Tue, Apr 28, 5:47 PM
Unknown Object (File)
Thu, Apr 23, 6:35 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 Not Applicable
Unit
Tests Not Applicable