Skip to content

Commit c3d0b41

Browse files
[AutoPR- Security] Patch ignition-flatcar for CVE-2026-27141 [MEDIUM] (microsoft#16935)
1 parent e63f104 commit c3d0b41

2 files changed

Lines changed: 51 additions & 1 deletion

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From db9b39ea4a35a9367797791c4da2d2f0bf700775 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 db3264d..4642564 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/ignition-flatcar/ignition-flatcar.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Version: 2.22.0
2424
%global dracutlibdir %{_prefix}/lib/dracut
2525

2626
Name: ignition-flatcar
27-
Release: 1%{?dist}
27+
Release: 2%{?dist}
2828
Vendor: Microsoft Corporation
2929
Distribution: Azure Linux
3030
Summary: First boot installer and configuration tool
@@ -53,6 +53,7 @@ Patch16: 0017-revert-internal-oem-drop-noop-OEMs.patch
5353
Patch17: 0018-docs-Add-re-added-platforms-to-docs-to-pass-tests.patch
5454
Patch18: 0019-usr-share-oem-oem.patch
5555
Patch19: 0020-internal-exec-stages-mount-Mount-oem.patch
56+
Patch20: CVE-2026-27141.patch
5657

5758
BuildRequires: libblkid-devel
5859
BuildRequires: systemd-rpm-macros
@@ -201,6 +202,9 @@ VERSION=%{version} GOARCH=%{goarch} ./test
201202
%endif
202203

203204
%changelog
205+
* Wed Apr 29 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 2.22.0-2
206+
- Patch for CVE-2026-27141
207+
204208
* Fri Jan 16 2026 Sumit Jena <v-sumitjena@microsoft.com> - 2.22.0-1
205209
- Initial Azure Linux import from the source project (license: same as "License" tag).
206210
- License verified.

0 commit comments

Comments
 (0)