Skip to contentSkip to conversation

go: fix CVE-2025-47907

PATCH New pkumar7 1 participant 1 message Aug 26, 2025

lore
Share & tools
lore

pkumar7

author
#0 lore raw

PATCH 1/1 go: fix CVE-2025-47907

From: Praveen Kumar <[email protected]>

Cancelling a query (e.g. by cancelling the context passed to one of the query methods) during a call to the Scan method of the returned Rows can result in unexpected results if other queries are being made in parallel. This can result in a race condition that may overwrite the expected results with those of another query, causing the call to Scan to return either unexpected results from the other query or an error.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2025-47907

Upstream-patch:
https://github.com/golang/go/commit/8a924caaf348fdc366bab906424616b2974ad4e9

---
 meta/recipes-devtools/go/go-1.22.12.inc       |   2 +
 .../go/go/CVE-2025-47907-pre.patch            | 233 +++++++++++++
 .../go/go/CVE-2025-47907.patch                | 328 ++++++++++++++++++
 3 files changed, 563 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-47907-pre.patch
 create mode 100644 meta/recipes-devtools/go/go/CVE-2025-47907.patch
meta/recipes-devtools/go/go-1.22.12.inc +2 -0
index af09cb52cd..c5332d5b4b 100644
@@ -17,5 +17,7 @@ SRC_URI += "\
     file://CVE-2025-22870.patch \
     file://CVE-2025-22871.patch \
     file://CVE-2025-4673.patch \
+    file://CVE-2025-47907-pre.patch \
+    file://CVE-2025-47907.patch \
 "
 SRC_URI[main.sha256sum] = "012a7e1f37f362c0918c1dfa3334458ac2da1628c4b9cf4d9ca02db986e17d71"
meta/recipes-devtools/go/go/CVE-2025-47907-pre.patch new file +233 -0

233 lines not on this page · raw message

meta/recipes-devtools/go/go/CVE-2025-47907.patch new file +328 -0

328 lines not on this page · raw message

Signature · 1 line
2.40.0