diff --git a/008-CVE-2026-71225.patch b/008-CVE-2026-71225.patch new file mode 100644 index 0000000..2befc0a --- /dev/null +++ b/008-CVE-2026-71225.patch @@ -0,0 +1,20 @@ +diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c +index a54cdaa..859ecdf 100644 +--- a/lib/kcapi-kernel-if.c ++++ b/lib/kcapi-kernel-if.c +@@ -1387,6 +1387,15 @@ ssize_t _kcapi_cipher_crypt_chunk(struct kcapi_handle *handle, + inlen -= inprocess; + out += ret; + outlen -= (uint32_t)ret; ++ ++ /* ++ * Clear the IV so subsequent chunks do not override the ++ * kernel's chained IV via ALG_SET_IV. The kernel updates ++ * its internal IV after each operation; by not sending ++ * ALG_SET_IV for later chunks, the next chunk continues ++ * where the previous one left off. ++ */ ++ handle->cipher.iv = NULL; + } + + return totallen; diff --git a/libkcapi.spec b/libkcapi.spec index 0b5714d..6bd918a 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -141,6 +141,7 @@ Patch4: 004-hasher-target-option.patch Patch5: 005-fips-mode-tests.patch Patch6: 006-CVE-2026-71226.patch Patch7: 007-CVE-2026-71227.patch +Patch8: 008-CVE-2026-71225.patch BuildRequires: bash BuildRequires: coreutils @@ -526,6 +527,8 @@ popd - CVE-2026-71227: Fix infinite loop denial of service in libkcapi _kcapi_aio_read_all() due to unhandled io_getevents() timeout return Resolves: RHEL-224975 +- CVE-2026-71225: Fix IV reuse in libkcapi one-shot symmetric cipher chunking + Resolves: RHEL-224697 * Fri Dec 01 2023 Zoltan Fridrich - 1.4.0-2 - Backport fixes for kcapi-hasher target option