diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-21 20:32:02 +0200 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-27 11:17:28 +0100 |
| commit | bb7620585c83c62fffb6779b0677ba9ab820f802 (patch) | |
| tree | 77f8b80e4383548cdeb4491a91665e57dfa6baed | |
| parent | 4c30475f5d81fd3b01e93b6f0142bdf5ea7da93d (diff) | |
| download | meta-openembedded-bb7620585c83c62fffb6779b0677ba9ab820f802.tar.gz | |
squid: patch CVE-2023-46724
Details: https://nvd.nist.gov/vuln/detail/CVE-2023-46724
Pick the patch from the details of the nvd report.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-networking/recipes-daemons/squid/files/CVE-2023-46724.patch | 41 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/squid/squid_4.15.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/CVE-2023-46724.patch b/meta-networking/recipes-daemons/squid/files/CVE-2023-46724.patch new file mode 100644 index 0000000000..177e6e0c18 --- /dev/null +++ b/meta-networking/recipes-daemons/squid/files/CVE-2023-46724.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 7025a946c8795244f8b50a40a84640ca8ed9e321 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andreas Weigel <andreas.weigel@securepoint.de> | ||
| 3 | Date: Wed, 18 Oct 2023 04:14:31 +0000 | ||
| 4 | Subject: [PATCH] Fix validation of certificates with CN=* (#1523) | ||
| 5 | |||
| 6 | The bug was discovered and detailed by Joshua Rogers at | ||
| 7 | https://megamansec.github.io/Squid-Security-Audit/ | ||
| 8 | where it was filed as "Buffer UnderRead in SSL CN Parsing". | ||
| 9 | |||
| 10 | CVE: CVE-2023-46724 | ||
| 11 | Upstream-Status: Backport [https://github.com/squid-cache/squid/commit/792ef23e6e1c05780fe17f733859eef6eb8c8be3] | ||
| 12 | |||
| 13 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 14 | --- | ||
| 15 | src/anyp/Uri.cc | 6 ++++++ | ||
| 16 | 1 file changed, 6 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/src/anyp/Uri.cc b/src/anyp/Uri.cc | ||
| 19 | index 54597f1..b0b60cf 100644 | ||
| 20 | --- a/src/anyp/Uri.cc | ||
| 21 | +++ b/src/anyp/Uri.cc | ||
| 22 | @@ -173,6 +173,10 @@ urlInitialize(void) | ||
| 23 | assert(0 == matchDomainName("*.foo.com", ".foo.com", mdnHonorWildcards)); | ||
| 24 | assert(0 != matchDomainName("*.foo.com", "foo.com", mdnHonorWildcards)); | ||
| 25 | |||
| 26 | + assert(0 != matchDomainName("foo.com", "")); | ||
| 27 | + assert(0 != matchDomainName("foo.com", "", mdnHonorWildcards)); | ||
| 28 | + assert(0 != matchDomainName("foo.com", "", mdnRejectSubsubDomains)); | ||
| 29 | + | ||
| 30 | /* more cases? */ | ||
| 31 | } | ||
| 32 | |||
| 33 | @@ -756,6 +760,8 @@ matchDomainName(const char *h, const char *d, uint8_t flags) | ||
| 34 | return -1; | ||
| 35 | |||
| 36 | dl = strlen(d); | ||
| 37 | + if (dl == 0) | ||
| 38 | + return 1; | ||
| 39 | |||
| 40 | /* | ||
| 41 | * Start at the ends of the two strings and work towards the | ||
diff --git a/meta-networking/recipes-daemons/squid/squid_4.15.bb b/meta-networking/recipes-daemons/squid/squid_4.15.bb index 9ac420d579..2c33d45bbf 100644 --- a/meta-networking/recipes-daemons/squid/squid_4.15.bb +++ b/meta-networking/recipes-daemons/squid/squid_4.15.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "http://www.squid-cache.org/Versions/v${MAJ_VER}/${BPN}-${PV}.tar.bz2 | |||
| 36 | file://CVE-2021-46784.patch \ | 36 | file://CVE-2021-46784.patch \ |
| 37 | file://CVE-2022-41317.patch \ | 37 | file://CVE-2022-41317.patch \ |
| 38 | file://CVE-2022-41318.patch \ | 38 | file://CVE-2022-41318.patch \ |
| 39 | file://CVE-2023-46724.patch \ | ||
| 39 | " | 40 | " |
| 40 | 41 | ||
| 41 | SRC_URI:remove:toolchain-clang = "file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch" | 42 | SRC_URI:remove:toolchain-clang = "file://0001-configure-Check-for-Wno-error-format-truncation-comp.patch" |
