Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HBSD: Provide workarounds for ICMP and IPv4 frag bugs
FreeBSD is vulnerable to the XNU ICMP bug due to the net.inet.icmp.quotelen sysctl node being increased from 8 to 548. The author of the referenced report below suggests decreasing the ICMP quote length back down to 8 until a real fix is provided. In the same report, the author hints at an IPv4 reassembly issue and suggests setting the net.inet.ip.maxfragsperpacket sysctl node to 0. Perform this workaround as well. This commit is only temporaryd until we at HardenedBSD get the time to investigate and provide a real fix. Once a fix is provided, this commit may be able to be reverted. Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org> Sponsored-by: SoldierX Reported-by: https://www.reddit.com/r/BSD/comments/9v6xwg/remotely_triggerable_icmp_buffer_underwrite_in/ MFC-to: 12-STABLE MFC-to: 11-STABLE
- Loading branch information
d60f241There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@opntr ACK/NACK on MFC
d60f241There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d60f241There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Details in the referenced reddit article: https://www.reddit.com/r/BSD/comments/9v6xwg/remotely_triggerable_icmp_buffer_underwrite_in/
More details in the FreeBSD commit: https://reviews.freebsd.org/rS340260
In the patch review (https://reviews.freebsd.org/D17909), FreeBSD mentioned concern regarding fragility of their fix. They suggest a full audit. I suggest we both bring in FreeBSD's current fix along with this workaround until that full audit is performed and non-fragile fixes are committed.
d60f241There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.