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
F159348546: D18366.id51283.diff
Sat, Jun 13, 3:40 AM
F159338949: D18366.id.diff
Sat, Jun 13, 12:52 AM
F159316091: D18366.id51430.diff
Fri, Jun 12, 7:24 PM
Unknown Object (File)
Wed, Jun 10, 5:29 AM
Unknown Object (File)
Tue, Jun 9, 10:27 AM
Unknown Object (File)
Tue, May 26, 2:22 AM
Unknown Object (File)
Mon, May 25, 9:53 PM
Unknown Object (File)
Wed, May 20, 4: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