Files
openwrt/package/libs
Hauke Mehrtens bacf308ec0 openssl: drop the AES-GCM-SIV part of the zero-length message patch
OpenSSL 3.5.8 fixes zero-length message handling for AES-GCM-SIV
upstream with commit bdeb0cd994d9 ("Check the tag on EVP_Cipher()
finalize: Poly1305 and OCB AEADs", CVE-2026-75803, backport of
5741d29a5f35): aes_gcm_siv_finish() now generates the tag when the
finalization is the first empty-message operation.

That makes the cipher_aes_gcm_siv.c hunk of our local patch redundant,
and worse than redundant. By substituting the address of an empty
object for the NULL input pointer it keeps routing the terminal
EVP_Cipher(ctx, out, NULL, 0) call to aes_gcm_siv_encrypt()/
aes_gcm_siv_decrypt() instead of aes_gcm_siv_finish(), so the tag
supplied by the caller is never compared and a forged tag is accepted.
That is the hole the upstream commit closes.

Measured against a locally built 3.5.8; the EVP_Cipher() return value
is a byte count, so 0 means the tag was accepted and -1 means it was
rejected:

                       decrypt empty msg      EVP_Cipher(out, NULL, 0)
                       genuine    forged      genuine    forged
  3.5.8 vanilla        ok         rejected      0          -1
  3.5.8 + patch 010    ok         rejected      0           0  <- bad
  3.5.8 + this commit  ok         rejected      0          -1

AES-SIV has no equivalent fix in 3.5.8 or in openssl master, and
without the second hunk a zero-length message cannot be encrypted at
all, so keep that hunk and rename the patch to match what is left.

Fixes: 2bc7978323 ("openssl: fix AES-GCM-SIV and AES-SIV with zero-length messages")
Assisted-by: Claude:claude-opus-5
Link: https://github.com/openwrt/openwrt/pull/24944
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-09-11 14:40:12 +02:00
..
2026-07-06 15:26:29 +02:00
…
2026-02-07 09:04:19 +01:00
2026-04-18 09:21:00 +02:00
2026-02-17 22:25:09 +01:00
2026-06-04 09:59:32 +02:00
2026-05-08 10:22:40 +02:00
2026-06-10 21:30:40 +02:00
2026-04-27 10:50:53 +02:00
2026-04-27 10:50:53 +02:00
2026-04-27 10:50:53 +02:00
2026-06-04 09:49:44 +02:00
2026-08-12 02:09:37 +02:00
2026-08-19 13:13:20 +02:00
2026-08-13 21:57:45 +02:00
2026-03-14 22:24:13 +01:00