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
F167132287: D18366.id51283.diff
Wed, Aug 19, 8:59 AM
Unknown Object (File)
Sun, Aug 9, 8:52 PM
Unknown Object (File)
Sat, Jul 25, 7:40 PM
Unknown Object (File)
Wed, Jul 22, 6:06 PM
Unknown Object (File)
Jul 20 2026, 10:30 AM
Unknown Object (File)
Jul 19 2026, 3:59 PM
Unknown Object (File)
Jul 14 2026, 4:47 PM
Unknown Object (File)
Jul 9 2026, 4:54 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