From patchwork Sat Nov 15 13:10:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 74596 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C1F5CEB2D7 for ; Sat, 15 Nov 2025 13:11:08 +0000 (UTC) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8210.1763212265862722740 for ; Sat, 15 Nov 2025 05:11:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M1Np3XJZ; spf=pass (domain: gmail.com, ip: 209.85.128.47, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4775638d819so16439645e9.1 for ; Sat, 15 Nov 2025 05:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212264; x=1763817064; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=gKyaZpQTRr8Flb2ivQlwAxM9vmqtvf9AF35FprXHqg0=; b=M1Np3XJZ6dRrB+Xwbu8EwwDTvkR1ER6cgAH+ozXzXcfwi1wDu3L6M1HxZSePcNCPCj yYaJ7NVqFvmA1Igyhot8GSA0OtTq7j72Gd4bnHdmLJb95DwaZssKTyIHaa1cRR843qAE OR2gPedrdN4wxwXQ9jKUHIRzftve3PaCWSic7EcSil1ug9JssRyvqCVapmqK8NgPCc66 ixWLPYcL0aDjowrowuF7plZVtsDgJ4s+iekPWUr3YCoe6hH+b5WVhM4n/AWN/bX+2yIN 71ekXObSu/eLbC6rIf1+g4c9IDENZDR2oHtvS1UiPqqIo/rG0XGnSSuJo1/78exgk2EH ZvZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212264; x=1763817064; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gKyaZpQTRr8Flb2ivQlwAxM9vmqtvf9AF35FprXHqg0=; b=bLEKqFoODtH4SAVeutKTeJf0j4S7KqhmZZqtiFWLHocdwy2w8KBP9RTv1nGfvbux+q 2lAZ+YdwpOV8CMeHOxv1tgw7ax2p+bweP2LNY1Z3npIjNfowI5vTjtkq2tj9r/hdP6R8 de1SrVzREyCcT2tq1Ed1g5JAfZcXOWfwddei37MYbcrAP6N+Q1AT5V8OMCPCUOsAhisa p9ukK9AIt4iOC0h3FEJWPNFV6NTX9GkZYYuMY0OH08i74oNgkeGryTByTGZMyo3z8izS YgAj67zaK1zJjKFdERFDZfTUWW7d8GRUneI99xnmOqqma/ZQMSl/BKWQ6Q48PwRB/zUf CR2w== X-Gm-Message-State: AOJu0YxS4zmPb7LQKJvEOvcXmRfNdEbRYKfs8sUJvetxx7P5GNiZFt1T WZ0t0sQBge2i/Xrei0zL9RmdCfIDGc0Jal2nr38jjd+P6+Rluec/7JI1Bx0+MctV X-Gm-Gg: ASbGncttrW1kkdP3mkKrqScT67iKp2+bKYApCMhCV7T6x1qb1Lg2jncRPjSAXiQpS7p yNWfN9rs+dPdjjCRStXjutxG/pgeFTVp+qHthMtLZrHUgMlBOfujio66bzV7A81EnGqZjhbPno/ 8zd6vWuwGaMfto/gxIdFzm5sbNewpWn2dtpFPwuW1pJj3sH1FzSbUtbjaCQ/ySfkS4MDC5u/NDH 4xaL3nZHYM6AI48HUg2RIvxn8qBhGlltJhny/50iiUWTA0VUERnhm19+igXVLT3UNU3knT0DnGQ sAVD3bbX18iIieyb2aEIXfYAXOllE/pLsdsdJDOra4QOheb9DI9gkEx5pZjOOY8kIP3f6aSRMo6 L/NFoCzyBl1Ay13llpAD0hQb6EhfhLkGWoUp3LqxRJr4aE+7uSiA3Ypoi9iO8Ay5RZCj5JqvgMw == X-Google-Smtp-Source: AGHT+IGDOlwwEL7jjO2q75Lvh7cUW5osM9IZXyjpggxgnW4whOl0vu45VBl5xT0woRjvp4sZUi06Bw== X-Received: by 2002:a05:600c:3550:b0:45f:2922:2aef with SMTP id 5b1f17b1804b1-4778feb0fe0mr61547695e9.28.1763212263850; Sat, 15 Nov 2025 05:11:03 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:01 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 1/6] rsyslog: set status for CVE-2015-3243 Date: Sat, 15 Nov 2025 14:10:54 +0100 Message-ID: <20251115131059.1146238-1-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121730 Details: https://nvd.nist.gov/vuln/detail/CVE-2015-3243 The issue is about file permissions: by default rsyslog creates world-readable files. In case a log message contains some sensitive information, then that's exposed to every user on the system. However the rsyslog.conf file that is shipped with the recipe solves it: it already sets non-world-readable default permissions on all files, so this vulnerability is fixed in the default OE recipe. See also this package in OpenSuse[1], where it is solved the same way. [1]: https://build.opensuse.org/requests/619439/changes (rsyslog.conf.in) Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit 38ea8a4617ad395b2addd24bd1f6b57a8242fa0b) Adapted to Kirkstone (CVE_STATUS -> CVE_CHECK_IGNORE) Signed-off-by: Gyorgy Sarvari --- meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf | 1 + meta-oe/recipes-extended/rsyslog/rsyslog_8.2206.0.bb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf index dbfefb7597..388c4e70bb 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf +++ b/meta-oe/recipes-extended/rsyslog/rsyslog/rsyslog.conf @@ -13,6 +13,7 @@ $ModLoad imklog # kernel logging (formerly provided by rklogd) # # Set the default permissions +# Setting the $FileCreateMode not world readable fixes CVE-2015-3243 # $FileOwner root $FileGroup adm diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2206.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2206.0.bb index a39de3acb5..eaa77d726e 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2206.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2206.0.bb @@ -36,6 +36,9 @@ SRC_URI[sha256sum] = "a1377218b26c0767a7a3f67d166d5338af7c24b455d35ec99974e18e68 UPSTREAM_CHECK_URI = "https://github.com/rsyslog/rsyslog/releases" UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)" +# The default rsyslog.conf file contains the fix +CVE_CHECK_IGNORE += "CVE-2015-3243" + inherit autotools pkgconfig systemd update-rc.d ptest EXTRA_OECONF += "--disable-generate-man-pages ap_cv_atomic_builtins=yes" From patchwork Sat Nov 15 13:10:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 74595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DD55CEB2D8 for ; Sat, 15 Nov 2025 13:11:08 +0000 (UTC) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8209.1763212266519236958 for ; Sat, 15 Nov 2025 05:11:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hdHONd3c; spf=pass (domain: gmail.com, ip: 209.85.128.44, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4779ce2a624so1817125e9.2 for ; Sat, 15 Nov 2025 05:11:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212265; x=1763817065; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=m12JsSeHODu3bogd9/TsEVH1uCoC00CjHP7KaSYDoPI=; b=hdHONd3c6LtopEgrP46aqNEnEO3/l4a5IJKNakqh/FkGdvPf0IxnUGIM0C6iiit+g8 OlCEPox3Q3mfs8/EPyBV/sVri3iNyKGU3Bt8A5IjiegOTP04+bsFsGY9eB2IOn1lwoU8 9Z8rcbI6bhABsmDavniqWUrkZ4ElpjACnA4AKBdyedAvPs60YwBlbUES8FuOJL/W6bFT X9OuifXNtgQZiHldZ6tGlsVIGNbcRXsYwKkjwdN5ybSli3PyYA+MzvNA6kbtn9B/m7hG eiVWf2iM8mdZKLA/2wYtwLkB6FFwXX4X8K7NAES41WNienjgRZ4zC1+H0dKvZnNQkVIn MItg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212265; x=1763817065; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=m12JsSeHODu3bogd9/TsEVH1uCoC00CjHP7KaSYDoPI=; b=sOOiyPA3DwqChBL0vaRkM4sM/Zkw0AvOwcgMT/A1+Vk/CwgpkPkrJqAO17WI08eEGY wZAHFGX3OhjlBsFhs+wK7/qDm3BLsyuZNPH+GnSGqj5ZVgasx77+b9tWsIjuDlNf29mI W67jkDm3bPGjfMwcHZBkHPM2oBIq6vLUER24alQUl6uLY9lxyf44BbyzY94VRvn+bl5J 2rbx4s7cU0VmeVJEsMkAtSKnAey9NSmPAlNjnMT+4ONI7PazjZzJ5iwIO2MGffoZLck/ GnQqK8zke/d/HfpQ6j/4kUVRGEFcsIUrUuJycD+SRTfft9LNcZ6b0bvLL0DC3otvduhe D2/Q== X-Gm-Message-State: AOJu0YzpgRnsg0Ze4wrtaOfpl2Ul/Md1jAX8sYKPBRqXUK32sl/ArjMX 33z0/ud/GfBGL5TmSXoc7mKBgRQg9hrrMC8fS+ZWx3asyOzlA970K3pFboQ0bNQ9 X-Gm-Gg: ASbGnctp9ecEXmG29VZoCpbtc2BrTq5JwHrvCbJCkYVUdOhH6fPBq70t7VE937L7MAt qB2FJbrAjTDnzqyk514hvcfHOiKhFdqm/dnIVXOL1IbJX0VKfg+XDYKF5IXceedO5rC4P5cnbh2 Futugbh/OLHdO1H7Upxs8ToxzbV9kdXrHT5W0b1b8izsHB6sZ54h0/4fjO/1gYhPpgo/BbQF0mA ElrwldUfDJd/XtDPQ8+TwEDC8Pz9kA92vIJbIIh+jwHKmpCvdCp3jes+fe2ya/KUTv3zuLvXl4o i/OgnQIsAP2V+AY3fvMD+PX34fWMXQx0hDR6wBm6XdU0B2cs5WXHx3c+tJLyQ8gtA7ql4sVBec3 Blu7QOgtR16Vd+KjNgR2ohTvrx74KTYlLZkRJ/CD4IgGqH6scdEi9hkAbJm38lgLEUv1iTFL0TQ == X-Google-Smtp-Source: AGHT+IEOThCaW6xFv43+ThUTo7HFE3ZBqQPp7hEmFRbZNxql4URP4LEQ2kYVUoXEoqXdtgTRQjdBYA== X-Received: by 2002:a05:600c:354b:b0:475:da13:257c with SMTP id 5b1f17b1804b1-4778fea1239mr67840715e9.27.1763212264653; Sat, 15 Nov 2025 05:11:04 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:04 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 2/6] audiofile: patch CVE-2019-13147 and CVE-2022-24599 Date: Sat, 15 Nov 2025 14:10:55 +0100 Message-ID: <20251115131059.1146238-2-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251115131059.1146238-1-skandigraun@gmail.com> References: <20251115131059.1146238-1-skandigraun@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:08 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121731 Details: https://nvd.nist.gov/vuln/detail/CVE-2019-13147 https://nvd.nist.gov/vuln/detail/CVE-2022-24599 These patches are used by opensuse to mitigate the corresponding vulnerabulities. Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit 8ef997336aec6f51318f1a7fa55d57e3990914e8) --- .../audiofile/audiofile_0.3.6.bb | 2 + .../audiofile/files/CVE-2019-13147.patch | 31 ++++++++++++ .../audiofile/files/CVE-2022-24599.patch | 50 +++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 meta-oe/recipes-multimedia/audiofile/files/CVE-2019-13147.patch create mode 100644 meta-oe/recipes-multimedia/audiofile/files/CVE-2022-24599.patch diff --git a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb index dd8784ae8e..4642b5e7be 100644 --- a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb +++ b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb @@ -18,6 +18,8 @@ SRC_URI = " \ file://0006-Check-for-multiplication-overflow-in-sfconvert.patch \ file://0007-Actually-fail-when-error-occurs-in-parseFormat.patch \ file://0008-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch \ + file://CVE-2019-13147.patch \ + file://CVE-2022-24599.patch \ " SRC_URI[md5sum] = "235dde14742317328f0109e9866a8008" SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782" diff --git a/meta-oe/recipes-multimedia/audiofile/files/CVE-2019-13147.patch b/meta-oe/recipes-multimedia/audiofile/files/CVE-2019-13147.patch new file mode 100644 index 0000000000..19f6892f69 --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/CVE-2019-13147.patch @@ -0,0 +1,31 @@ +This patch is taken from opensuse: +https://build.opensuse.org/package/show/multimedia:libs/audiofile + +CVE: CVE-2019-13147 +Upstream-Status: Inactive-Upstream [lastcommit: 2016-Aug-30] +Signed-off-by: Gyorgy Sarvari + +diff --unified --recursive --text --new-file --color audiofile-0.3.6/libaudiofile/NeXT.cpp audiofile-0.3.6.new/libaudiofile/NeXT.cpp +--- audiofile-0.3.6/libaudiofile/NeXT.cpp 2013-03-06 13:30:03.000000000 +0800 ++++ audiofile-0.3.6.new/libaudiofile/NeXT.cpp 2025-05-14 10:45:11.685700984 +0800 +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + #include "File.h" + #include "Setup.h" +@@ -122,6 +123,12 @@ + _af_error(AF_BAD_CHANNELS, "invalid file with 0 channels"); + return AF_FAIL; + } ++ /* avoid overflow of INT for double size rate */ ++ if (channelCount > (INT32_MAX / (sizeof(double)))) ++ { ++ _af_error(AF_BAD_CHANNELS, "invalid file with %i channels", channelCount); ++ return AF_FAIL; ++ } + + Track *track = allocateTrack(); + if (!track) diff --git a/meta-oe/recipes-multimedia/audiofile/files/CVE-2022-24599.patch b/meta-oe/recipes-multimedia/audiofile/files/CVE-2022-24599.patch new file mode 100644 index 0000000000..9214d80172 --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/CVE-2022-24599.patch @@ -0,0 +1,50 @@ +This patch is taken from opensuse: +https://build.opensuse.org/package/show/multimedia:libs/audiofile + +CVE: CVE-2022-24599 +Upstream-Status: Inactive-Upstream [lastcommit: 2016-Aug-30] +Signed-off-by: Gyorgy Sarvari + +diff --unified --recursive --text --new-file --color audiofile-0.3.6.old/sfcommands/printinfo.c audiofile-0.3.6.new/sfcommands/printinfo.c +--- audiofile-0.3.6.old/sfcommands/printinfo.c 2013-03-06 13:30:03.000000000 +0800 ++++ audiofile-0.3.6.new/sfcommands/printinfo.c 2025-04-30 15:18:24.778177640 +0800 +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + static char *copyrightstring (AFfilehandle file); + +@@ -147,7 +148,11 @@ + int i, misccount; + + misccount = afGetMiscIDs(file, NULL); +- miscids = (int *) malloc(sizeof (int) * misccount); ++ if (!misccount) ++ return NULL; ++ miscids = (int *)calloc(misccount, sizeof(int)); ++ if (!miscids) ++ return NULL; + afGetMiscIDs(file, miscids); + + for (i=0; i= INT_MAX - 1) ++ goto error; ++ char *data = (char *)calloc(datasize + 1, sizeof(char)); + afReadMisc(file, miscids[i], data, datasize); + copyright = data; + break; + } + ++error: + free(miscids); + + return copyright; From patchwork Sat Nov 15 13:10:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 74597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7528ECEB2D8 for ; Sat, 15 Nov 2025 13:11:18 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8210.1763212269405535116 for ; Sat, 15 Nov 2025 05:11:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JhiZ7iOO; spf=pass (domain: gmail.com, ip: 209.85.128.45, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-47755de027eso21137275e9.0 for ; Sat, 15 Nov 2025 05:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212268; x=1763817068; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3h8Dsco1yJixNRUvSXR/8d7sK59uX43QQNe5b25F3I0=; b=JhiZ7iOOxeRCwIfGM1QDYEMAOP8G/8Oa2tYQnyfbQClpdNR6xVeM6+ZE4pIp3OywFl 6ncmwq5XUdMnlMO8tk5p4a54k9sj6XUZHiUrH5tpxyGUrxYYulH49tV+unBFjU3EDxJZ XXGbbvni3TtSVP9mCopQ/nlQJJLb2myKFvVRHDyKcTVJJfDi1Zit/nceIS1h/zAl4/+k +JW0ieLe3AI/B3zqrfigH0Idwo+HhDGgWJ2bKD62jBtSfwuL5UnOZoVxxx1xeLDKO57u Lz5YeGbMzT3EsVaADy83TxV1re/oiXfurYOp5ye/YxP/SRsYY2DMZVUP7xdaRiwY2vC5 A3MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212268; x=1763817068; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3h8Dsco1yJixNRUvSXR/8d7sK59uX43QQNe5b25F3I0=; b=o4nNvw+xJTjBhk6uCz3ftOmvAghNMCIGONDliSJjeBIeHXyuruZp3ozdyVhWL46Ipd IrxWbBT1cE2exUMM2b7xVuLLG/FFFx0/9DO/ZxjX8NSwwYOGe9x5a2WsC2J/fzoXUdK1 2USR7QsoKCdfz/Gc6zf817hBBdSvWdxDWJ3kZK4JUCCuR5KEXBuBMCF55GFN9v4k+76U L03Z2LeV98iTmMRfy1SeIE2GpU5Hq3lXfocUqPw7TTJaoDic/P4wpgcAE7sUnynje9pG CI4zNUKyH1njbHI3DS9wXaDtYXB4E5Oyb3k9ijT7K29mLk1Oq6cvpJj2OImty4IbfY1J sapA== X-Gm-Message-State: AOJu0YwCnaVtSAb83+XXCf1iYkxGAeFwokLPEd5bA8mKDr2/OZzmgYZz lSTbppjB8Y45NTUeYbpHXlJKGrew2n7D2etKN5t+TMiSB5Gl7y1O+pSPoX+llfwL X-Gm-Gg: ASbGncvsyXVw2ClNncbvbOt+paSVvZlIIIqg5OC/9ZIpafyRULO+oabUpoYHZJUE0vN ohG193ChYF0oEzNMvn2ToFqGMKJ3czW3hBaqaztC0E4+tammmXZCsl92+DiBF8PNx9KG1Hl0fmg eC8Fq7OTPTJyZllxRKt/kQ46eYF9JMKhChFhcx1IKEdtCHPCAKVucU0ZseVnnngm2aIxIHUirXI gcUj+A0Km2giB+y8h4bsOE06/d5U9KCNCA/4Px7g2V+QC4IKGtloxKoOZ6GBBaem+CfsauseAyC Ltb3l5z/2ziyhkk8e6jo7pbcvtYN146PbI62TQC0MTpHRfH1UF8h5SL+8gKxKEvdDNdhaJs3jg5 wawMXPQudNoCjn2GSzjELV+zFt/tdq70jh9N5VUfMnx93b+LG6AKfPD8TqVwxYK1Ob3DR5RfDVz ab3BJSAusn X-Google-Smtp-Source: AGHT+IGOO+lMzbHo+pF4WXIKKbPdy35RbW88+o+9Un5sXWIzlFYOQgG88yogz+06hvXuqqiRER8CJQ== X-Received: by 2002:a05:600c:8b4b:b0:477:1af2:f40a with SMTP id 5b1f17b1804b1-4778fe504abmr61323165e9.17.1763212267533; Sat, 15 Nov 2025 05:11:07 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:05 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 3/6] audiofile: add ptest support Date: Sat, 15 Nov 2025 14:10:56 +0100 Message-ID: <20251115131059.1146238-3-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251115131059.1146238-1-skandigraun@gmail.com> References: <20251115131059.1146238-1-skandigraun@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121732 It's under 15 seconds to execute it. Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit 85ded08df0ad850928eea9919674161d94da5454) --- .../audiofile/audiofile_0.3.6.bb | 18 +++++++++++++++++- .../audiofile/files/run-ptest | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-multimedia/audiofile/files/run-ptest diff --git a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb index 4642b5e7be..dabc8b66b3 100644 --- a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb +++ b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb @@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ SRC_URI = " \ ${GNOME_MIRROR}/audiofile/0.3/${BP}.tar.xz \ + file://run-ptest \ file://0001-fix-negative-shift-constants.patch \ file://0002-fix-build-on-gcc6.patch \ file://0003-fix-CVE-2015-7747.patch \ @@ -24,7 +25,7 @@ SRC_URI = " \ SRC_URI[md5sum] = "235dde14742317328f0109e9866a8008" SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782" -inherit autotools lib_package pkgconfig +inherit autotools lib_package pkgconfig ptest DEPENDS = " \ asciidoc-native \ @@ -32,3 +33,18 @@ DEPENDS = " \ libogg \ flac \ " + +do_compile_ptest(){ + oe_runmake -C gtest libgtest.la + cd test + # Query the TESTS variable value, remove the $(...) parts from it, + # compile as make target along with FLAC (which is an optional test) + oe_runmake `make -p | grep "^TESTS = " | sed 's/$([^)]*)//g' | cut -d= -f2` FLAC +} + +do_install_ptest(){ + install -d ${D}${PTEST_PATH}/test + for t in test/.libs/*; do + install $t ${D}${PTEST_PATH}/test/ + done +} diff --git a/meta-oe/recipes-multimedia/audiofile/files/run-ptest b/meta-oe/recipes-multimedia/audiofile/files/run-ptest new file mode 100644 index 0000000000..4e41ef3cda --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/run-ptest @@ -0,0 +1,14 @@ +#!/bin/sh + +RES=0 +cd test +for t in *; do + if ./$t; then + echo PASS: $t + else + echo FAIL: $t + RES=1 + fi +done + +exit $RES From patchwork Sat Nov 15 13:10:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 74598 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CA41CEB2DA for ; Sat, 15 Nov 2025 13:11:18 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8212.1763212270234453491 for ; Sat, 15 Nov 2025 05:11:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DwRnEddF; spf=pass (domain: gmail.com, ip: 209.85.128.42, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-47775fb6c56so32259935e9.1 for ; Sat, 15 Nov 2025 05:11:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212269; x=1763817069; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kLls8Vx5ctFFKvmk12DADwgbazHNc5hKrAhwqCLTs9E=; b=DwRnEddFRo9JAl4He09DDRfH3utkQ/GUnfBkon+A5mEvZ+SgI+rCUBT7QmvY93hsp9 Fr2MNQ2w9gbdJ107gBFZ9nkUbYzhrajjUTrmeCAxdqgFnJzwlTLpdO7B0W9vC7ehUcjI uIaEx9e7zzpxv507sUwYFi6aIxLO1wyt+NbextTUi/lUwiGMAH53JK3OJ5PPB6JN5L0j H6Uv40FySPG5Kp2MR9Ros172/Vc+DP/CKt50dLOfHL5QS2EIzYmqsUKfNqtf2MlsxFrU /FvLAQDNozmV7TMMszs5pBGrg/WAMAF0SCZGuXHQgpV64QPiy8uYOLewYs9ZPv+5K127 h4Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212269; x=1763817069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kLls8Vx5ctFFKvmk12DADwgbazHNc5hKrAhwqCLTs9E=; b=FmkijcjJFUynW3RluX67mQaZEw/HtBa3PgBfVpXKW8l3LrhaF7lDSQ3ENxoOuqHNta FZahRQxIP3C0veFVjpepbWW8tH1YX4tEzEvF1bIlGZSDFNRkbTNjbE1Xi1vpfZRRcOGO IIHA1XMLt/s8+FvPOPxIqnDXdD4YpOIPVOtUytvC41SmI6dKtQ4IwKvwP1rVVrnVpDNo O3E9W36M4zDyZCuXQOSyS3vfXo+UHfQNluNLo3Ai/4Cy9krxRc/eON2YaGuLexjQ6Bhq MtR0AONnMim/XgNrQNYVEBSyNVKxg1RJ/W6/th94wjKHvBaOXV1heUnzNUj5G5JskOcT avrQ== X-Gm-Message-State: AOJu0YxOmidXEVrik9/akK9Gte3bHXmVURlaAHfXeMP38ppDWwwqS0z/ axn7aSetEYKGkQL+GBPUlMxlSRZJo7sRdIGz8Pl5jzd4re/pUXGJxzmhSeLc4f3V X-Gm-Gg: ASbGncuPXIm49GKP53n3E6kQfBO9zEV9INvc3Ha+r8v5H2YDsONAQ1TaurrSgTigFhd f+2MZjFFyfuRfCRrK1Mw/pyVq/Ip57nDBIcdLJgmoGwwyjJQzNbbhGRtdSnt+UfAOmgMR7n+v0Z fEX42R/HJBDAq9Y+XfTJRWLgSzGAYakomjlKjOn4FKXy1GsJGKEMfkcYj4Fuws3MGeNZvhaiPjh yfEP3/Cez5Th66ajCjWC2FrzN5FDbSUynQpBAvtl2jVwplUtmWsOplOcMeo3ZIpCcsAAjqxd93w CSl7tEZE+snt/cHpygeVYc2Y68icdvaFjHrcrMqRkuRGnYZ4hl37uIIZQUj4lkvXPrb8HgZ/LkA q7Y6sPM6Uh3C0ACxR3LMDEuqtMsgFvo7v1wrzK5WiXkHgjggY018r7rQ2OsXbh0g+nC8dLFvjp4 SaOFYvAF2W X-Google-Smtp-Source: AGHT+IEqibEfpswVifs7GOxoZmjQiyhbM5birWDPfvBceVTb1nvM4d8v4rxZ9IaXwaCqPQzl61EpLQ== X-Received: by 2002:a05:600c:4505:b0:477:5c45:8100 with SMTP id 5b1f17b1804b1-4778fe9638dmr58856645e9.24.1763212268501; Sat, 15 Nov 2025 05:11:08 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:07 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 4/6] audiofile: backport test for CVE-2015-7747 Date: Sat, 15 Nov 2025 14:10:57 +0100 Message-ID: <20251115131059.1146238-4-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251115131059.1146238-1-skandigraun@gmail.com> References: <20251115131059.1146238-1-skandigraun@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121733 This is a backported patch from opensuse, which contains a testcase for CVE-2015-7747 (which is already patched in ths recipe, but not tested explicitly). Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit 6c98db2449a52de0f9533ab84e31c7a1d2bd7e49) --- .../audiofile/audiofile_0.3.6.bb | 1 + .../files/test-for-CVE-2015-7747.patch | 166 ++++++++++++++++++ 2 files changed, 167 insertions(+) create mode 100644 meta-oe/recipes-multimedia/audiofile/files/test-for-CVE-2015-7747.patch diff --git a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb index dabc8b66b3..f9683bd0c6 100644 --- a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb +++ b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb @@ -19,6 +19,7 @@ SRC_URI = " \ file://0006-Check-for-multiplication-overflow-in-sfconvert.patch \ file://0007-Actually-fail-when-error-occurs-in-parseFormat.patch \ file://0008-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch \ + file://test-for-CVE-2015-7747.patch \ file://CVE-2019-13147.patch \ file://CVE-2022-24599.patch \ " diff --git a/meta-oe/recipes-multimedia/audiofile/files/test-for-CVE-2015-7747.patch b/meta-oe/recipes-multimedia/audiofile/files/test-for-CVE-2015-7747.patch new file mode 100644 index 0000000000..a62cc7589b --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/test-for-CVE-2015-7747.patch @@ -0,0 +1,166 @@ +From 1debf51f3a89d44c0bd46e7bc45c07342087dd7c Mon Sep 17 00:00:00 2001 +From: Fabrizio Gennari +Date: Sun, 4 Oct 2015 01:14:00 +0200 +Subject: [PATCH 2/2] Add a test case for conversion of both sample format and + number of channels + +This patch contains the testcase backport to version 0.3.6. +Author: Stanislav Brabec + +https://bugzilla.novell.com/show_bug.cgi?id=949399#c7 + + +This patch is from opensuse, to verify a CVE fix: +https://build.opensuse.org/projects/multimedia:libs/packages/audiofile/files/audiofile-CVE-2015-7747.patch: + +Upstream-Status: Inactive-Upstream [lastcommit: 2016-Aug-30] +Signed-off-by: Gyorgy Sarvari +--- + test/Makefile.am | 2 + + test/sixteen-stereo-to-eight-mono.c | 118 ++++++++++++++++++++++++++++++++++++ + 2 files changed, 120 insertions(+) + create mode 100644 test/sixteen-stereo-to-eight-mono.c + +diff --git a/test/Makefile.am b/test/Makefile.am +index 7bbf8e4..d311719 100644 +--- a/test/Makefile.am ++++ b/test/Makefile.am +@@ -27,6 +27,7 @@ TESTS = \ + VirtualFile \ + floatto24 \ + query2 \ ++ sixteen-stereo-to-eight-mono \ + sixteen-to-eight \ + testchannelmatrix \ + testdouble \ +@@ -143,6 +144,7 @@ printmarkers_SOURCES = printmarkers.c + printmarkers_LDADD = $(LIBAUDIOFILE) -lm + + sixteen_to_eight_SOURCES = sixteen-to-eight.c TestUtilities.cpp TestUtilities.h ++sixteen_stereo_to_eight_mono_SOURCES = sixteen-stereo-to-eight-mono.c TestUtilities.cpp TestUtilities.h + + testchannelmatrix_SOURCES = testchannelmatrix.c TestUtilities.cpp TestUtilities.h + +diff --git a/test/sixteen-stereo-to-eight-mono.c b/test/sixteen-stereo-to-eight-mono.c +new file mode 100644 +index 0000000..0f14636 +--- /dev/null ++++ b/test/sixteen-stereo-to-eight-mono.c +@@ -0,0 +1,117 @@ ++/* ++ Audio File Library ++ ++ Copyright 2000, Silicon Graphics, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 2 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License along ++ with this program; if not, write to the Free Software Foundation, Inc., ++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ++*/ ++ ++/* ++ sixteen-stereo-to-eight-mono.c ++ ++ This program tests the conversion from 2-channel 16-bit integers to ++ 1-channel 8-bit integers. ++*/ ++ ++#ifdef HAVE_CONFIG_H ++#include ++#endif ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++ ++#include "TestUtilities.h" ++ ++int main (int argc, char **argv) ++{ ++ AFfilehandle file; ++ AFfilesetup setup; ++ int16_t frames16[] = {14298, 392, 3923, -683, 958, -1921}; ++ int8_t frames8[] = {28, 6, -2}; ++ int i, frameCount = 3; ++ int8_t byte; ++ AFframecount result; ++ ++ setup = afNewFileSetup(); ++ ++ afInitFileFormat(setup, AF_FILE_WAVE); ++ ++ afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16); ++ afInitChannels(setup, AF_DEFAULT_TRACK, 2); ++ ++ char testFileName[PATH_MAX]; ++ if (!createTemporaryFile("sixteen-to-eight", testFileName)) ++ { ++ fprintf(stderr, "Could not create temporary file.\n"); ++ exit(EXIT_FAILURE); ++ } ++ ++ file = afOpenFile(testFileName, "w", setup); ++ if (file == AF_NULL_FILEHANDLE) ++ { ++ fprintf(stderr, "could not open file for writing\n"); ++ exit(EXIT_FAILURE); ++ } ++ ++ afFreeFileSetup(setup); ++ ++ afWriteFrames(file, AF_DEFAULT_TRACK, frames16, frameCount); ++ ++ afCloseFile(file); ++ ++ file = afOpenFile(testFileName, "r", AF_NULL_FILESETUP); ++ if (file == AF_NULL_FILEHANDLE) ++ { ++ fprintf(stderr, "could not open file for reading\n"); ++ exit(EXIT_FAILURE); ++ } ++ ++ afSetVirtualSampleFormat(file, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 8); ++ afSetVirtualChannels(file, AF_DEFAULT_TRACK, 1); ++ ++ for (i=0; i X-Patchwork-Id: 74600 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81CABCEB2CC for ; Sat, 15 Nov 2025 13:11:18 +0000 (UTC) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.8213.1763212271165742873 for ; Sat, 15 Nov 2025 05:11:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tb2sG2tz; spf=pass (domain: gmail.com, ip: 209.85.128.42, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-471191ac79dso31067125e9.3 for ; Sat, 15 Nov 2025 05:11:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212269; x=1763817069; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UDxHwhIMfs3QVyDDI9xksuhEX5TKYQilz7LFBJGKNwc=; b=Tb2sG2tzngvNyfp8zTj2VQrVKY1uEbyXV41GfnnGF+2oaZ0MTsaZdy4g3/WUywXA4d ZGE6stFlXUdu9esihGUDMealu158m660b5tIyvwrDRUXFBJhmtT5Np07PYVSLsmHHGZJ mHj3sVQeZ3dEbN93ITw4xC0vGNAQCPGbZ9NcWrXEuQESDqvGebOEGBNEvXq+pYMM4PXf xb3+9BGLQds3oDgmGbnriz8HtodmJ5VoiLEk8HKAaKJGq0OYjj5fwvpAHvHxP1icWy/k +SrL9jxvFWb62CR8gl8EQZlYQbvg4oiNQQGuCZzfT7sgx9OF+66MihSF8xMNBr9W1wNR e95A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212269; x=1763817069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UDxHwhIMfs3QVyDDI9xksuhEX5TKYQilz7LFBJGKNwc=; b=IgB9sX/g8QakumuwES7jipWtRK+qsJyK0jxuCncrOQyFRXSZYisKzwdJ/lYNWcxe7Z GJ9DGewYZmEkP+ZUMmQTFTs5iBN5h+79bNaAFwwgfeGYVKYP9CUO7Y7egwK0PhzS8z3Y yUxOpBVlOkQDW81kFLFpMv0an3nBEdOPYZmOamgXIfchcE2AECdPpYwmR1TzonnY5qSY t9Q/Y4uBR19+0Gan9iHoHfoZoA68Fnrq8eY/P6Go+eOIc3DMW/F4eN5Wh9azTPwCUJEG 45gkbesnjHYeCaFsoKRHri0sbvhU5ZApTo3Lf5olh8wyi4NOCxsAfG8D7/JP/jmUwu7n alAg== X-Gm-Message-State: AOJu0YyCjSCRPDVUiDeELtHKfvhze34n/idQ7rLqdrqJ4TrcLZ6lQYm6 xdmFa16Afv3IoZSmVr/18ATf0E2xKu1kiUEQ/MO/PAaLZCmAK9CaZ3O4bgH4qYSB X-Gm-Gg: ASbGnctEvPrhOXvZ4lhfcdjQNTQJJwkua35Y0lRzBVszCTvVfQ18OGjca8SFqQaDZUw 6xd81naNsHRtsveog7puvYZo9nDcQoldyzSxQP6sbONnZAHiTz0DsIdM7fMYDMzTeZ9/XKGac/5 +faNb3f5spt3OQOyqfiRgrGQd9ZzNkNJCTIx0inJWf0nAo7+j8TMUXzOUHhLwcnOnRnfWn5YRkM wQP0PNHdGXZY2C4AbIQB3H2CjYRYZv5XbaaWv5/nc+SlO54jLBI8uIyYeiiIVBIGQUy/ZsxSBeF QwdKpa31t1dlsck3b7vsnivxAW6cfe2TNnBCZkZY8eTtd4hcbaExE6fsndVkSR7p9JC9ajPkzLX QrxHfFA/kKviftUif0eqvdruq+IpPjn3idmb3InIYzPTeczp8UBWqQUzrNOR+9BmU2/SWWlibmS Kuyi5BqQTe X-Google-Smtp-Source: AGHT+IHDo3JCUQ7AJ3NSy5MQr2Z1LDV/VPhbp+Vqioo9yljUfFpUXO0ZIooKU15dK8/5tOvXm4ajyA== X-Received: by 2002:a05:600c:3b19:b0:477:6d96:b3ca with SMTP id 5b1f17b1804b1-4778fe5522fmr67407515e9.5.1763212269400; Sat, 15 Nov 2025 05:11:09 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:08 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 5/6] audiofile: patch CVE-2018-13440 and CVE-2018-17059 Date: Sat, 15 Nov 2025 14:10:58 +0100 Message-ID: <20251115131059.1146238-5-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251115131059.1146238-1-skandigraun@gmail.com> References: <20251115131059.1146238-1-skandigraun@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121734 Details: https://nvd.nist.gov/vuln/detail/CVE-2018-13440 https://nvd.nist.gov/vuln/detail/CVE-2018-17059 The patches have been backported from Debian - upstream has been inactive for almost a decade by now. Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit e16a7d11d1dc0c577cb17652085b0c183c791883) --- .../audiofile/audiofile_0.3.6.bb | 2 ++ .../audiofile/files/CVE-2018-13440.patch | 36 +++++++++++++++++++ .../audiofile/files/CVE-2018-17059.patch | 35 ++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 meta-oe/recipes-multimedia/audiofile/files/CVE-2018-13440.patch create mode 100644 meta-oe/recipes-multimedia/audiofile/files/CVE-2018-17059.patch diff --git a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb index f9683bd0c6..4c368f8875 100644 --- a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb +++ b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb @@ -22,6 +22,8 @@ SRC_URI = " \ file://test-for-CVE-2015-7747.patch \ file://CVE-2019-13147.patch \ file://CVE-2022-24599.patch \ + file://CVE-2018-13440.patch \ + file://CVE-2018-17059.patch \ " SRC_URI[md5sum] = "235dde14742317328f0109e9866a8008" SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782" diff --git a/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-13440.patch b/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-13440.patch new file mode 100644 index 0000000000..f468696845 --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-13440.patch @@ -0,0 +1,36 @@ +From fde6d79fb8363c4a329a184ef0b107156602b225 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Thu, 27 Sep 2018 10:48:45 +0200 +Subject: [PATCH] ModuleState: handle compress/decompress init failure + +When the unit initcompress or initdecompress function fails, +m_fileModule is NULL. Return AF_FAIL in that case instead of +causing NULL pointer dereferences later. + +Fixes #49 + +This patch has been backported from Debian: +https://sources.debian.org/src/audiofile/0.3.6-7/debian/patches/11_CVE-2018-13440.patch + +CVE: CVE-2018-13440 +Upstream-Status: Inactive-Upstream [lastcommit: 2016-Aug-30] +Signed-off-by: Gyorgy Sarvari + +--- + libaudiofile/modules/ModuleState.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/libaudiofile/modules/ModuleState.cpp b/libaudiofile/modules/ModuleState.cpp +index 0c29d7a..070fd9b 100644 +--- a/libaudiofile/modules/ModuleState.cpp ++++ b/libaudiofile/modules/ModuleState.cpp +@@ -75,6 +75,9 @@ status ModuleState::initFileModule(AFfilehandle file, Track *track) + m_fileModule = unit->initcompress(track, file->m_fh, file->m_seekok, + file->m_fileFormat == AF_FILE_RAWDATA, &chunkFrames); + ++ if (!m_fileModule) ++ return AF_FAIL; ++ + if (unit->needsRebuffer) + { + assert(unit->nativeSampleFormat == AF_SAMPFMT_TWOSCOMP); diff --git a/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-17059.patch b/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-17059.patch new file mode 100644 index 0000000000..e9b560102a --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/CVE-2018-17059.patch @@ -0,0 +1,35 @@ +From 822b732fd31ffcb78f6920001e9b1fbd815fa712 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Thu, 27 Sep 2018 12:11:12 +0200 +Subject: [PATCH] SimpleModule: set output chunk framecount after pull + +After pulling the data, set the output chunk to the amount of +frames we pulled so that the next module in the chain has the correct +frame count. + +Fixes #50 and #51 + +This patch has been backported from Debian: +https://sources.debian.org/src/audiofile/0.3.6-7/debian/patches/12_CVE-2018-17095.patch + +CVE: CVE-2018-17095 + +Upstream-Status: Inactive-Upstream [lastcommit: 2016-Aug-30] +Signed-off-by: Gyorgy Sarvari + +--- + libaudiofile/modules/SimpleModule.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libaudiofile/modules/SimpleModule.cpp b/libaudiofile/modules/SimpleModule.cpp +index 2bae1eb..e87932c 100644 +--- a/libaudiofile/modules/SimpleModule.cpp ++++ b/libaudiofile/modules/SimpleModule.cpp +@@ -26,6 +26,7 @@ + void SimpleModule::runPull() + { + pull(m_outChunk->frameCount); ++ m_outChunk->frameCount = m_inChunk->frameCount; + run(*m_inChunk, *m_outChunk); + } + From patchwork Sat Nov 15 13:10:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 74599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FF6DCEB2DE for ; Sat, 15 Nov 2025 13:11:18 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.8211.1763212272029208007 for ; Sat, 15 Nov 2025 05:11:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i/55GX7D; spf=pass (domain: gmail.com, ip: 209.85.128.43, mailfrom: skandigraun@gmail.com) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-477563e28a3so19241335e9.1 for ; Sat, 15 Nov 2025 05:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763212270; x=1763817070; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LS0AnGTe69AtSD/qb1XGSOxxxzx0Ga94OCzCBfWczKc=; b=i/55GX7D9pzzNabVyAMw24IDMaI9vLDDltRzR+/LBxGjZar5nYdPeNfqKtwhOGQ6QB JceUomcQ1ZL9J6GzUyqdLNiLMhYBJcqwiFUjTmBs1O/wj+m1qImdegdebxGE3QFLyjBO WVrJnCNCFVfNTh0Y1f6tlA+DW4yJqpnpP/qKukrsNewQ4k1Gjbs8Id9lVpYW0X6kE2ws g/E3EG4wPHyrzp1MzeTsYoTxG+S9v0S1GmNf+wjbHnjO9+3CJys6dkc83P0SG1v4/TKX kFyf2okkFUq2cpwHMbmV+aHefLHXqunfGuf4iK/bblwCnRDl4d3s5MOUL4vIX9lLCA+n YJsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763212270; x=1763817070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=LS0AnGTe69AtSD/qb1XGSOxxxzx0Ga94OCzCBfWczKc=; b=bCejx51d5bEbAPy8Nb4rMx/tteaN5z+TWiXlONsmm5NAIik7jx9GXE4ZN84Aq0AIIp M906QYZvVScqTnxSqKvSAlnVT9GmTzEQmpbziHI+8PlucXTHBCBaPapWARsLhrthve+B 026TdIQr5+vBaoc3XSybYx1jQ7SlC0HJFcmS0ZC0CEz4WqYf8KHn4svNfCyyzL8mq5+J ATB3Nc1Wfw7BA81NfaczzCbTIgPhSzwW4vWKV/VCJUGU9fVBW1yH4vm3Trer5r7h2h+e 63jq7ls1G9pjIlnQduLZhduD0ThxHXepjJsbycOsqPoCOvVc4URGYhpndWtMRbtThi9o jdQg== X-Gm-Message-State: AOJu0Ywg92HJy7oj6omc3RaB+z2T712mY7tBR4tDx+VDAoITOg+WiO7H kfwzflgoR2KylvOuMwNlEKP8Z2FKaBzoQfxYWIRKxqS1FRDauhv6MzsPJZS/52xh X-Gm-Gg: ASbGnctIOGGzZa6porG02f81zHSh8b1mXeDMWDxcO7DSDpDU/MVzIpEHTXWSKpticcF hpJaFWBVqz8Sg+2QvHp/4LfIhiwJgBK+haTAMaXnM4nWOSE0WZY+QHV08CHcORFQ3utSZJSRuwB 3F79gutcQpUL1kOIRWPdk/R7PFmPYsbCTwtnrYH2fccrkmpzQ+rhZpW6/XVLKgCIQW+G3oK2fJL JKB2tCymHtSdqQ3gtujvlxECm2BhypiJJSv6lswt981dZCWrq36VIMgj4VjPOuO+/7wVyX5DuSX GSbF9zbI3eaZsOcfpG/wUZ2NmzNBQq7PVVIQUt8L40YvYvgWlJQnr68Mlq2gDl7trSENC4b/grC 0n4d5dIeryNc/zchNA/vxH81/J8o3PHgJ9Hbf5TNMnxq3fiICXofAXwxALzShjKVmHhef9ap7xA == X-Google-Smtp-Source: AGHT+IHWmQycyGGo4rKEyQAvAGyKxdjFhmTOGKBVOHEHqFni6xjRWoxM09+whASskswZwgmOLxyyfg== X-Received: by 2002:a05:600c:190e:b0:471:665:e688 with SMTP id 5b1f17b1804b1-4778fdc3175mr72876405e9.17.1763212270337; Sat, 15 Nov 2025 05:11:10 -0800 (PST) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47796a8a695sm42868995e9.13.2025.11.15.05.11.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 05:11:09 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][kirkstone][PATCH 6/6] audiofile: Fix build with clang++ Date: Sat, 15 Nov 2025 14:10:59 +0100 Message-ID: <20251115131059.1146238-6-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251115131059.1146238-1-skandigraun@gmail.com> References: <20251115131059.1146238-1-skandigraun@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 15 Nov 2025 13:11:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121735 From: Khem Raj When tests are enabled additional C++ code is compiled and clang does not like the code. Cc: Gyorgy Sarvari Signed-off-by: Khem Raj (cherry picked from commit 78f49691d74db266fc94ac5581eb71d71c7c45e0) Signed-off-by: Gyorgy Sarvari --- .../audiofile/audiofile_0.3.6.bb | 1 + ...test-sign.cpp-Fix-C-narrowing-errors.patch | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 meta-oe/recipes-multimedia/audiofile/files/0001-test-sign.cpp-Fix-C-narrowing-errors.patch diff --git a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb index 4c368f8875..d047bd06e2 100644 --- a/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb +++ b/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb @@ -19,6 +19,7 @@ SRC_URI = " \ file://0006-Check-for-multiplication-overflow-in-sfconvert.patch \ file://0007-Actually-fail-when-error-occurs-in-parseFormat.patch \ file://0008-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch \ + file://0001-test-sign.cpp-Fix-C-narrowing-errors.patch \ file://test-for-CVE-2015-7747.patch \ file://CVE-2019-13147.patch \ file://CVE-2022-24599.patch \ diff --git a/meta-oe/recipes-multimedia/audiofile/files/0001-test-sign.cpp-Fix-C-narrowing-errors.patch b/meta-oe/recipes-multimedia/audiofile/files/0001-test-sign.cpp-Fix-C-narrowing-errors.patch new file mode 100644 index 0000000000..83c573a873 --- /dev/null +++ b/meta-oe/recipes-multimedia/audiofile/files/0001-test-sign.cpp-Fix-C-narrowing-errors.patch @@ -0,0 +1,41 @@ +From bed0eb57c3294bac1c743cbe4404168c1007287d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 13 Nov 2025 17:00:59 -0800 +Subject: [PATCH] test/sign.cpp: Fix C++ narrowing errors + +The error is because -kMinInt32 is both overflowing and a narrowing conversion in a brace initializer. +Fix it by doing the negation in a wider type and explicitly casting to uint32_t in the initializer. + +Fixes + +../../sources/audiofile-0.3.6/test/Sign.cpp:160:39: error: non-constant-expression cannot be narrowed from type 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] + 160 | const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; + | ^~~~~~~~~~ +../../sources/audiofile-0.3.6/test/Sign.cpp:160:39: note: insert an explicit cast to silence this issue + 160 | const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; + | ^~~~~~~~~~ + | static_cast( ) +../../sources/audiofile-0.3.6/test/Sign.cpp:160:39: warning: overflow in expression; result is -2'147'483'648 with type 'int32_t' (aka 'int') [-Winteger-overflow] + 160 | const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; + | ^~~~~~~~~~ +1 warning and 1 error generated. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + test/Sign.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/Sign.cpp b/test/Sign.cpp +index c339514..0d80fe6 100644 +--- a/test/Sign.cpp ++++ b/test/Sign.cpp +@@ -157,7 +157,7 @@ TEST_F(SignConversionTest, Int32) + AFframecount framesRead = afReadFrames(file, AF_DEFAULT_TRACK, readData, frameCount); + ASSERT_EQ(framesRead, frameCount); + afCloseFile(file); +- const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; ++ const uint32_t expectedData[] = { 0, static_cast(-static_cast(kMinInt32)), kMaxUInt32 }; + for (int i=0; i