aboutsummaryrefslogtreecommitdiff
path: root/include/printf.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-06-24 01:14:11 +0000
committerMark Johnston <markj@FreeBSD.org>2026-06-30 02:32:02 +0000
commitf769a69b2da3850d320431605fecf9c4910dac9b (patch)
tree7f69917ccab5854ee16a9edf60ed537fc7b8ec8c /include/printf.h
parent8b11e7df3a62de6469d6d265d3e68b59763d82f4 (diff)
ktls CBC decrypt: Only increment iovec index when an entry is used
If an mbuf in the chain was skipped because it only contained bytes from the header, the iovec index ('i') was incremented even though the entry was not populated. Only increment 'i' when an iovec entry is consumed. Add a new type of KTLS receive test which writes a single TLS record via two separate write(2) calls over a TCP_NODELAY socket to trigger a split in the mbuf chain in the kernel. Test various split locations including after the "plain" TLS header (5 bytes), after the full TLS header, in the middle of the data payload, just before the start of the trailer, and in the middle of the trailer. These tests are also run against all supported ciphers, not just CBC. The 'header' test for CBC ciphersuites was able to trigger the bug. Approved by: so Security: FreeBSD-SA-26:46.ktls Security: CVE-2026-49423 Sponsored by: Chelsio Communications
Diffstat (limited to 'include/printf.h')
0 files changed, 0 insertions, 0 deletions