mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
jq: patch CVE-2026-39979
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-39979 Backport the patch that is referenced by the NVD advisory.y Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
From ac09f274b6c029a23e3dffc38afac819b5daacc4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: itchyny <itchyny@cybozu.co.jp>
|
||||||
|
Date: Mon, 13 Apr 2026 11:04:52 +0900
|
||||||
|
Subject: [PATCH] Fix out-of-bounds read in jv_parse_sized()
|
||||||
|
|
||||||
|
This fixes CVE-2026-39979.
|
||||||
|
|
||||||
|
Co-authored-by: Mattias Wadman <mattias.wadman@gmail.com>
|
||||||
|
|
||||||
|
CVE: CVE-2026-39979
|
||||||
|
Upstream-Status: Backport [https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f]
|
||||||
|
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
|
||||||
|
---
|
||||||
|
src/jv_parse.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/jv_parse.c b/src/jv_parse.c
|
||||||
|
index ffcf51f..e6b8aa9 100644
|
||||||
|
--- a/src/jv_parse.c
|
||||||
|
+++ b/src/jv_parse.c
|
||||||
|
@@ -892,8 +892,9 @@ jv jv_parse_sized_custom_flags(const char* string, int length, int flags) {
|
||||||
|
|
||||||
|
if (!jv_is_valid(value) && jv_invalid_has_msg(jv_copy(value))) {
|
||||||
|
jv msg = jv_invalid_get_msg(value);
|
||||||
|
- value = jv_invalid_with_msg(jv_string_fmt("%s (while parsing '%s')",
|
||||||
|
+ value = jv_invalid_with_msg(jv_string_fmt("%s (while parsing '%.*s')",
|
||||||
|
jv_string_value(msg),
|
||||||
|
+ length,
|
||||||
|
string));
|
||||||
|
jv_free(msg);
|
||||||
|
}
|
||||||
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/jqlang/jq.git;protocol=https;branch=master;tag=jq-${
|
|||||||
file://CVE-2026-32316.patch \
|
file://CVE-2026-32316.patch \
|
||||||
file://CVE-2026-33947.patch \
|
file://CVE-2026-33947.patch \
|
||||||
file://CVE-2026-33948.patch \
|
file://CVE-2026-33948.patch \
|
||||||
|
file://CVE-2026-39979.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit autotools ptest
|
inherit autotools ptest
|
||||||
|
|||||||
Reference in New Issue
Block a user