Skip to content

Commit 2deb0f3

Browse files
Patch jq for CVE-2025-48060
1 parent c79309e commit 2deb0f3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

SPECS/jq/CVE-2025-48060.patch

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From a2ff6dd13fd47ec5d74cb5dab2f152112de6a1c1 Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Thu, 24 Jul 2025 10:20:29 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-48060 in jq
6+
7+
[AI Backported] Upstream Patch Reference: https://github.com/jqlang/jq/commit/c6e041699d8cd31b97375a2596217aff2cfca85b
8+
---
9+
src/jv.c | 1 +
10+
1 file changed, 1 insertion(+)
11+
12+
diff --git a/src/jv.c b/src/jv.c
13+
index d3042e6..d7e3938 100644
14+
--- a/src/jv.c
15+
+++ b/src/jv.c
16+
@@ -498,6 +498,7 @@ static jv jvp_string_empty_new(uint32_t length) {
17+
jvp_string* s = jvp_string_alloc(length);
18+
s->length_hashed = 0;
19+
memset(s->data, 0, length);
20+
+ s->data[length] = 0;
21+
jv r = {JV_KIND_STRING, 0, 0, 0, {&s->refcnt}};
22+
return r;
23+
}
24+
--
25+
2.45.4
26+

SPECS/jq/jq.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
Summary: jq is a lightweight and flexible command-line JSON processor.
22
Name: jq
33
Version: 1.6
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
Group: Applications/System
66
Vendor: Microsoft Corporation
77
License: MIT
88
URL: https://github.com/stedolan/jq
99
Source0: https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
1010
Distribution: Mariner
1111
Patch0: CVE-2024-23337.patch
12+
Patch1: CVE-2025-48060.patch
1213
BuildRequires: bison
1314
BuildRequires: chrpath
1415
BuildRequires: flex
@@ -59,6 +60,9 @@ make check
5960
%{_includedir}/*
6061

6162
%changelog
63+
* Thu Jul 24 2025 Azure Linux Security Servicing Account <[email protected]> - 1.6-4
64+
- Patch for CVE-2025-48060
65+
6266
* Mon May 26 2025 Akhila Guruju <[email protected]> - 1.6-3
6367
- Patch CVE-2024-23337
6468

0 commit comments

Comments
 (0)