diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-04-30 23:46:47 +1200 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-05-08 07:28:45 +0530 |
| commit | f52f32952cb9717949f8bc3d3ccf6c4c5a59521f (patch) | |
| tree | 536e43d16c434d2e1c96ad5dbddd88b6134ff778 /meta-networking/recipes-connectivity/wolfssl | |
| parent | 0722748606b01ec1a3db242f676f3a219e24378b (diff) | |
| download | meta-openembedded-whinlatter.tar.gz | |
wolfssl: patch CVE-2026-5778whinlatter
Backport commit from the PR[1] mentioned in the nvd[2]
[1]https://github.com/wolfSSL/wolfssl/pull/10125
[2]https://nvd.nist.gov/vuln/detail/CVE-2026-5778
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/wolfssl')
| -rw-r--r-- | meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch | 38 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch b/meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch new file mode 100644 index 0000000000..b640b41bd0 --- /dev/null +++ b/meta-networking/recipes-connectivity/wolfssl/files/CVE-2026-5778.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 0eee2c2d172a28dc9159211d0d22323c980a48f4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Kareem <kareem@wolfssl.com> | ||
| 3 | Date: Thu, 2 Apr 2026 16:41:55 -0700 | ||
| 4 | Subject: [PATCH] Add sz check to ChachaAEADDecrypt to prevent potential | ||
| 5 | underflow. | ||
| 6 | |||
| 7 | Thanks to Zou Dikai for the report. | ||
| 8 | |||
| 9 | (cherry picked from commit 5b6b138964058ab8d30474bc9fdfb5ffcb3a4726) | ||
| 10 | |||
| 11 | CVE: CVE-2026-5778 | ||
| 12 | Upstream-Status: Backport [https://github.com/wolfSSL/wolfssl/commit/5b6b138964058ab8d30474bc9fdfb5ffcb3a4726] | ||
| 13 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 14 | --- | ||
| 15 | src/internal.c | 7 ++++++- | ||
| 16 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/src/internal.c b/src/internal.c | ||
| 19 | index 6af03cbf0..40d1dd7cc 100644 | ||
| 20 | --- a/src/internal.c | ||
| 21 | +++ b/src/internal.c | ||
| 22 | @@ -19310,10 +19310,15 @@ int ChachaAEADDecrypt(WOLFSSL* ssl, byte* plain, const byte* input, | ||
| 23 | byte tag[POLY1305_AUTH_SZ]; | ||
| 24 | byte poly[CHACHA20_256_KEY_SIZE]; /* generated key for mac */ | ||
| 25 | int ret = 0; | ||
| 26 | - int msgLen = (sz - ssl->specs.aead_mac_size); | ||
| 27 | + int msgLen = 0; | ||
| 28 | Keys* keys = &ssl->keys; | ||
| 29 | byte* seq = NULL; | ||
| 30 | |||
| 31 | + if (sz < ssl->specs.aead_mac_size) { | ||
| 32 | + return BAD_FUNC_ARG; | ||
| 33 | + } | ||
| 34 | + msgLen = (sz - ssl->specs.aead_mac_size); | ||
| 35 | + | ||
| 36 | #ifdef CHACHA_AEAD_TEST | ||
| 37 | int i; | ||
| 38 | printf("input before decrypt :\n"); | ||
diff --git a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb index 54a1e401d4..7a55c6dcde 100644 --- a/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb +++ b/meta-networking/recipes-connectivity/wolfssl/wolfssl_5.8.0.bb | |||
| @@ -46,6 +46,7 @@ SRC_URI = " \ | |||
| 46 | file://CVE-2026-5447.patch \ | 46 | file://CVE-2026-5447.patch \ |
| 47 | file://CVE-2026-5772-1.patch \ | 47 | file://CVE-2026-5772-1.patch \ |
| 48 | file://CVE-2026-5772-2.patch \ | 48 | file://CVE-2026-5772-2.patch \ |
| 49 | file://CVE-2026-5778.patch \ | ||
| 49 | " | 50 | " |
| 50 | 51 | ||
| 51 | SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285" | 52 | SRCREV = "b077c81eb635392e694ccedbab8b644297ec0285" |
