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
F174603844: D18366.id.diff
Sun, Oct 4, 2:49 PM
F174601335: D18366.id51430.diff
Sun, Oct 4, 2:22 PM
Unknown Object (File)
Wed, Sep 30, 7:34 PM
Unknown Object (File)
Aug 24 2026, 7:12 PM
Unknown Object (File)
Aug 24 2026, 1:19 PM
Unknown Object (File)
Aug 23 2026, 9:15 PM
Unknown Object (File)
Aug 23 2026, 8:30 PM
Unknown Object (File)
Aug 23 2026, 5:43 PM
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