Skip to content

Commit 16632ad

Browse files
CBL-Mariner-Botazurelinux-securityKanishk-Bansaljslobodzian
authored
Merge PR "[AUTO-CHERRYPICK] [AutoPR- Security] Patch azurelinux-image-tools for CVE-2026-27141 [HIGH] - branch 3.0-dev" #16188
Co-authored-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com> Co-authored-by: jslobodzian <joslobo@microsoft.com>
1 parent cdf216b commit 16632ad

2 files changed

Lines changed: 52 additions & 3 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From 09313f6d249a0c11eeb3ce16578033bdd6602fcb Mon Sep 17 00:00:00 2001
2+
From: Konnyaku <beifengxuanxiao@126.com>
3+
Date: Tue, 17 Feb 2026 21:23:54 +0800
4+
Subject: [PATCH] http2: fix nil panic in typeFrameParser for unassigned frame
5+
types
6+
7+
The addition of FramePriorityUpdate (0x10) in RFC 9218 introduced a gap
8+
in the frameParsers array indices (0x0a-0x0f). These indices were
9+
initialized to nil, causing a panic when typeFrameParser accessed them
10+
for unassigned frame types (e.g., ALTSVC 0x0a).
11+
12+
This change adds a nil check in typeFrameParser to safely fallback to
13+
parseUnknownFrame for these unassigned types, preventing the crash.
14+
15+
Fixes golang/go#77652
16+
17+
Change-Id: I14d7ad85afc1eafabc46417a9fff10f9e0a22446
18+
Reviewed-on: https://go-review.googlesource.com/c/net/+/746180
19+
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
20+
Reviewed-by: Damien Neil <dneil@google.com>
21+
Auto-Submit: Damien Neil <dneil@google.com>
22+
Reviewed-by: Mark Freeman <markfreeman@google.com>
23+
Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
24+
Upstream-reference: https://github.com/golang/net/commit/19f580fd686a6bb31d4af15febe789827169bc26.patch
25+
---
26+
vendor/golang.org/x/net/http2/frame.go | 4 +++-
27+
1 file changed, 3 insertions(+), 1 deletion(-)
28+
29+
diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go
30+
index 9a4bd12..6e393e9 100644
31+
--- a/vendor/golang.org/x/net/http2/frame.go
32+
+++ b/vendor/golang.org/x/net/http2/frame.go
33+
@@ -139,7 +139,9 @@ var frameParsers = [...]frameParser{
34+
35+
func typeFrameParser(t FrameType) frameParser {
36+
if int(t) < len(frameParsers) {
37+
- return frameParsers[t]
38+
+ if f := frameParsers[t]; f != nil {
39+
+ return f
40+
+ }
41+
}
42+
return parseUnknownFrame
43+
}
44+
--
45+
2.45.4
46+

SPECS/azurelinux-image-tools/azurelinux-image-tools.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Summary: Azure Linux Image Tools
44
Name: azurelinux-image-tools
55
Version: 1.2.0
6-
Release: 1%{?dist}
6+
Release: 2%{?dist}
77
License: MIT
88
URL: https://github.com/microsoft/azure-linux-image-tools/
99
Group: Applications/System
@@ -15,6 +15,7 @@ Source0: https://github.com/microsoft/azure-linux-image-tools/archive/ref
1515
# Use generate_source_tarball.sh script with the package version to build this tarball.
1616
#
1717
Source1: %{name}-%{version}-vendor.tar.gz
18+
Patch0: CVE-2026-27141.patch
1819
BuildRequires: golang < 1.25
1920
BuildRequires: systemd-udev
2021
Requires: %{name}-imagecustomizer = %{version}-%{release}
@@ -68,8 +69,7 @@ Summary: OS Modifier
6869
The Azure Linux OS Modifier is a tool that can modify an OS.
6970

7071
%prep
71-
%autosetup -p1 -n azure-linux-image-tools-%{version}
72-
tar -xf %{SOURCE1} --no-same-owner
72+
%autosetup -a1 -p1 -n azure-linux-image-tools-%{version}
7373

7474
%build
7575
export GOPATH=%{our_gopath}
@@ -112,6 +112,9 @@ go test -C toolkit/tools ./...
112112
%{_bindir}/osmodifier
113113

114114
%changelog
115+
* Thu Mar 05 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 1.2.0-2
116+
- Patch for CVE-2026-27141
117+
115118
* Fri Feb 27 2026 Brian Fjeldstad <bfjelds@microsoft.com> 1.2.0-1
116119
- Add osmodifier subpackage
117120
- Upgrade to version 1.2.0

0 commit comments

Comments
 (0)