]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When the IP layer calls back into the SCTP layer to perform the SCTP
authortuexen <tuexen@FreeBSD.org>
Sun, 15 Sep 2019 18:29:45 +0000 (18:29 +0000)
committertuexen <tuexen@FreeBSD.org>
Sun, 15 Sep 2019 18:29:45 +0000 (18:29 +0000)
commite7003e64b018f5f5d8441ec11d701d1b74d048ce
tree29c13a641095189405369f389f1bd6d5d86ed587
parent0beaa1237c5e6d0ef2018675bd905a2a280f01c8
When the IP layer calls back into the SCTP layer to perform the SCTP
checksum computation, do not assume that the IP header chain and the
SCTP common header are in contiguous memory although the SCTP lays
out the mbuf chains that way. If there are IP-level options inserted
by the IP layer, the constraint is not fulfilled anymore.

This issues was found by running syzkaller. Thanks to markj@ who is
running an instance which also provides kernel dumps. This allowed me
to find this issue.

MFC after: 3 days
sys/netinet/sctp_crc32.c