Skip to contentSkip to conversation

go: fix CVE-2025-58185

PATCH New [email protected] 1 participant 7 messages Nov 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 go: fix CVE-2025-58185

From: Archana Polampalli <[email protected]>

Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   1 +
 .../go/go/CVE-2025-58185.patch                | 142 ++++++++++++++++++
 2 files changed, 143 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-58185.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index a364e1aae8..38992219c8 100644
@@ -21,6 +21,7 @@ SRC_URI += "\
     file://CVE-2025-47907-pre.patch \
     file://CVE-2025-47907.patch \
     file://CVE-2025-47906.patch \
+    file://CVE-2025-58185.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-58185.patch new file +142 -0

142 lines not on this page · raw message

Signature · 1 line
2.40.0
#1 lore raw

PATCH 2/7 go: fix CVE-2025-58187

From: Archana Polampalli <[email protected]>

Due to the design of the name constraint checking algorithm, the processing time of some inputs scals non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   1 +
 .../go/go/CVE-2025-58187.patch                | 349 ++++++++++++++++++
 2 files changed, 350 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-58187.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index 38992219c8..a1c14ea684 100644
@@ -22,6 +22,7 @@ SRC_URI += "\
     file://CVE-2025-47907.patch \
     file://CVE-2025-47906.patch \
     file://CVE-2025-58185.patch \
+    file://CVE-2025-58187.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-58187.patch new file +349 -0

349 lines not on this page · raw message

Signature · 1 line
2.40.0
#2 lore raw

PATCH 3/7 go: fix CVE-2025-58188

In reply to [email protected]

From: Archana Polampalli <[email protected]>

Validating certificate chains which contain DSA public keys can cause programs to panic, due to a interface cast that assumes they implement the Equal method. This affects programs which validate arbitrary certificate chains.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   1 +
 .../go/go/CVE-2025-58188.patch                | 194 ++++++++++++++++++
 2 files changed, 195 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-58188.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index a1c14ea684..b619fc48f4 100644
@@ -23,6 +23,7 @@ SRC_URI += "\
     file://CVE-2025-47906.patch \
     file://CVE-2025-58185.patch \
     file://CVE-2025-58187.patch \
+    file://CVE-2025-58188.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-58188.patch new file +194 -0

194 lines not on this page · raw message

Signature · 1 line
2.40.0
#3 lore raw

PATCH 4/7 go: fix CVE-2025-58189

In reply to [email protected]

From: Archana Polampalli <[email protected]>

When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |  1 +
 .../go/go/CVE-2025-58189.patch                | 50 +++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-58189.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index b619fc48f4..1e4139148e 100644
@@ -24,6 +24,7 @@ SRC_URI += "\
     file://CVE-2025-58185.patch \
     file://CVE-2025-58187.patch \
     file://CVE-2025-58188.patch \
+    file://CVE-2025-58189.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-58189.patch new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.40.0
#4 lore raw

PATCH 5/7 go: fix CVE-2025-47912

In reply to [email protected]

From: Archana Polampalli <[email protected]>

The Parse function permits values other than IPv6 addresses to be included in square brackets within the host component of a URL. RFC 3986 permits IPv6 addresses to be included within the host component, enclosed within square brackets. For example: "http://[::1]/". IPv4 addresses and hostnames must not appear within square brackets. Parse did not enforce this requirement.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   1 +
 .../go/go/CVE-2025-47912.patch                | 226 ++++++++++++++++++
 2 files changed, 227 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-47912.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index 1e4139148e..2be5c8b519 100644
@@ -25,6 +25,7 @@ SRC_URI += "\
     file://CVE-2025-58187.patch \
     file://CVE-2025-58188.patch \
     file://CVE-2025-58189.patch \
+    file://CVE-2025-47912.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-47912.patch new file +226 -0

226 lines not on this page · raw message

Signature · 1 line
2.40.0
#5 lore raw

PATCH 6/7 go: fix CVE-2025-61723

In reply to [email protected]

From: Archana Polampalli <[email protected]>

The processing time for parsing some invalid inputs scales non-linearly with respect to the size of the input. This affects programs which parse untrusted PEM inputs.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   1 +
 .../go/go/CVE-2025-61723.patch                | 223 ++++++++++++++++++
 2 files changed, 224 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-61723.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index 2be5c8b519..9996cfb870 100644
@@ -26,6 +26,7 @@ SRC_URI += "\
     file://CVE-2025-58188.patch \
     file://CVE-2025-58189.patch \
     file://CVE-2025-47912.patch \
+    file://CVE-2025-61723.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-61723.patch new file +223 -0

223 lines not on this page · raw message

Signature · 1 line
2.40.0
#6 lore raw

PATCH 7/7 go: fix CVE-2025-61724

In reply to [email protected]

From: Archana Polampalli <[email protected]>

The Reader.ReadResponse function constructs a response string through repeated string concatenation of lines. When the number of lines in a response is large, this can cause excessive CPU consumption.

---
 meta/recipes-devtools/go/go-1.22.12.inc       |  1 +
 .../go/go/CVE-2025-61724.patch                | 75 +++++++++++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-61724.patch
meta/recipes-devtools/go/go-1.22.12.inc +1 -0
index 9996cfb870..825b8f4d68 100644
@@ -27,6 +27,7 @@ SRC_URI += "\
     file://CVE-2025-58189.patch \
     file://CVE-2025-47912.patch \
     file://CVE-2025-61723.patch \
+    file://CVE-2025-61724.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
 
meta/recipes-devtools/go/go/CVE-2025-61724.patch new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.40.0