Skip to content

Commit ff3dac8

Browse files
CBL-Mariner-Botazurelinux-securityaaruag
authored
Merge PR "[AUTO-CHERRYPICK] [AutoPR- Security] Patch telegraf for CVE-2025-47913 [HIGH] - branch 3.0-dev" #15135
Co-authored-by: Azure Linux Security Servicing Account <[email protected]> Co-authored-by: aaruag <[email protected]>
1 parent 5b1e48f commit ff3dac8

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
From bfcec8590886ef05b312d567b7079be006ed23c2 Mon Sep 17 00:00:00 2001
2+
From: AllSpark <[email protected]>
3+
Date: Tue, 18 Nov 2025 16:24:10 +0000
4+
Subject: [PATCH] ssh/agent: return an error for unexpected message types
5+
6+
Previously, receiving an unexpected message type in response to a key
7+
listing or a signing request could cause a panic due to a failed type
8+
assertion.
9+
10+
This change adds a default case to the type switch in order to detect
11+
and explicitly handle unknown or invalid message types, returning a
12+
descriptive error instead of crashing.
13+
14+
Fixes golang/go#75178
15+
16+
Signed-off-by: Azure Linux Security Servicing Account <[email protected]>
17+
Upstream-reference: AI Backport of https://github.com/golang/crypto/commit/559e062ce8bfd6a39925294620b50906ca2a6f95.patch
18+
---
19+
vendor/golang.org/x/crypto/ssh/agent/client.go | 6 ++++--
20+
1 file changed, 4 insertions(+), 2 deletions(-)
21+
22+
diff --git a/vendor/golang.org/x/crypto/ssh/agent/client.go b/vendor/golang.org/x/crypto/ssh/agent/client.go
23+
index fecba8eb..6dc73e09 100644
24+
--- a/vendor/golang.org/x/crypto/ssh/agent/client.go
25+
+++ b/vendor/golang.org/x/crypto/ssh/agent/client.go
26+
@@ -430,8 +430,9 @@ func (c *client) List() ([]*Key, error) {
27+
return keys, nil
28+
case *failureAgentMsg:
29+
return nil, errors.New("agent: failed to list keys")
30+
+ default:
31+
+ return nil, fmt.Errorf("agent: failed to list keys, unexpected message type %T", msg)
32+
}
33+
- panic("unreachable")
34+
}
35+
36+
// Sign has the agent sign the data using a protocol 2 key as defined
37+
@@ -462,8 +463,9 @@ func (c *client) SignWithFlags(key ssh.PublicKey, data []byte, flags SignatureFl
38+
return &sig, nil
39+
case *failureAgentMsg:
40+
return nil, errors.New("agent: failed to sign challenge")
41+
+ default:
42+
+ return nil, fmt.Errorf("agent: failed to sign challenge, unexpected message type %T", msg)
43+
}
44+
- panic("unreachable")
45+
}
46+
47+
// unmarshal parses an agent message in packet, returning the parsed
48+
--
49+
2.45.4
50+

SPECS/telegraf/telegraf.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: agent for collecting, processing, aggregating, and writing metrics.
22
Name: telegraf
33
Version: 1.31.0
4-
Release: 10%{?dist}
4+
Release: 11%{?dist}
55
License: MIT
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -23,6 +23,7 @@ Patch8: CVE-2025-30204.patch
2323
Patch9: CVE-2025-27144.patch
2424
Patch10: CVE-2025-30215.patch
2525
Patch11: CVE-2025-22872.patch
26+
Patch12: CVE-2025-47913.patch
2627

2728
BuildRequires: golang
2829
BuildRequires: systemd-devel
@@ -87,6 +88,9 @@ fi
8788
%dir %{_sysconfdir}/%{name}/telegraf.d
8889

8990
%changelog
91+
* Tue Nov 18 2025 Azure Linux Security Servicing Account <[email protected]> - 1.31.0-11
92+
- Patch for CVE-2025-47913
93+
9094
* Tue Apr 22 2025 Mayank Singh <[email protected]> - 1.31.0-10
9195
- Fix CVE-2025-22872 with an upstream patch
9296

0 commit comments

Comments
 (0)