opnsense-src/tests/sys
John Baldwin 7aee9d6c6d 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
2026-06-30 23:16:53 +02:00
..
acl Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
aio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
audit Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auditpipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
cam Make the CTL tests more resilient 2025-01-20 09:23:08 -07:00
capsicum capsicum tests: Serialize functional tests 2024-09-20 11:39:16 +00:00
cddl zfsd: replace vdevs with the AUX faulted state 2024-10-31 08:00:32 -06:00
common vnet tests: verify that we can load if_epair and if_bridge 2024-08-22 21:01:33 +02:00
compat32 tests: Don't recurse into sys/compat32 2023-05-16 02:06:34 +01:00
devrandom Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fifo Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
file path_test: adjust test for open(O_PATH | O_CREAT) 2025-01-14 10:56:41 +02:00
fs fusefs: Handle buggy servers' LISTXATTR response 2026-05-21 07:32:52 +02:00
geom geli tests: Use shorter passphrases in setkey_passphrase 2025-02-14 19:25:19 +00:00
kern ktls CBC decrypt: Only increment iovec index when an entry is used 2026-06-30 23:16:53 +02:00
kqueue kqueue tests: Add a regression test 2024-02-11 10:14:44 -05:00
mac Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
mqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
net if_ovpn: add interface counters 2026-02-18 13:03:31 +01:00
netgraph Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netinet tests/libalias: Add a regression test for an alias_smedia bug 2026-06-30 23:16:41 +02:00
netinet6 netinet6 tests: Add Scapy as a required program 2025-03-01 22:53:06 +00:00
netipsec tests: fix test for NULL encription 2025-04-02 10:52:32 +03:00
netlink tests/netlink: mark a test that requires tun(4) 2025-03-31 19:02:20 -07:00
netmap netmap: fix unit tests 2025-04-06 18:05:05 +00:00
netpfil pf: do not reject rules with colliding hashes 2026-06-02 07:33:28 +02:00
opencrypto Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
pjdfstest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
posixshm posixshm: Fix handling of sendfile() with largepage objects 2026-06-30 23:16:49 +02:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sound sound: Fix software buffer lifetime issues 2026-06-10 08:42:35 +02:00
sys queue(3): Add simple tests for some macros for all list/tailq types 2025-05-01 21:48:48 +02:00
vfs Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vm device_pager: Avoid double-insertion of pages into the pager list 2026-06-30 23:16:24 +02:00
vmm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile ctl: add some ATF tests for READ BUFFER 2024-09-04 15:00:20 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00