diff options
| author | Emmanouil Fragkiskos Ragkousis <manolis837@gmail.com> | 2026-08-15 05:39:59 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-08-24 16:05:01 +0200 |
| commit | f2f9b4030a591949aada0b78b76a745e01b9ffd1 (patch) | |
| tree | 3cc78a315a1dd83272a8af50d74286db3f146b87 | |
| parent | d5d8f66e4675636993c61f5e30bdd8ab8df71ea8 (diff) | |
gnu: miniaudio: Update to 0.11.25.
* gnu/packages/cpp.scm (miniaudio): Update to 0.11.25.
[source]: Apply a patch for CVE-2026-32837.
[properties]: Mark CVE-2026-32837 as patched.
* gnu/packages/patches/miniaudio-CVE-2026-32837.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
Signed-off-by: Andreas Enge <andreas@enge.fr>
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/cpp.scm | 7 | ||||
| -rw-r--r-- | gnu/packages/patches/miniaudio-CVE-2026-32837.patch | 20 |
3 files changed, 26 insertions, 2 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index e170320b745..c77989ed8ad 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1953,6 +1953,7 @@ dist_patch_DATA = \ | |||
| 1953 | %D%/packages/patches/mia-vtk9.patch \ | 1953 | %D%/packages/patches/mia-vtk9.patch \ |
| 1954 | %D%/packages/patches/mia-vtk92.patch \ | 1954 | %D%/packages/patches/mia-vtk92.patch \ |
| 1955 | %D%/packages/patches/mia-vtk-version.patch \ | 1955 | %D%/packages/patches/mia-vtk-version.patch \ |
| 1956 | %D%/packages/patches/miniaudio-CVE-2026-32837.patch \ | ||
| 1956 | %D%/packages/patches/minisat-friend-declaration.patch \ | 1957 | %D%/packages/patches/minisat-friend-declaration.patch \ |
| 1957 | %D%/packages/patches/minisat-install.patch \ | 1958 | %D%/packages/patches/minisat-install.patch \ |
| 1958 | %D%/packages/patches/miniz-for-pytorch.patch \ | 1959 | %D%/packages/patches/miniz-for-pytorch.patch \ |
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 6c4d2870403..3167c1ac94f 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm | |||
| @@ -55,6 +55,7 @@ | |||
| 55 | ;;; Copyright © 2026 Daniel Littlewood <dan@danielittlewood.xyz> | 55 | ;;; Copyright © 2026 Daniel Littlewood <dan@danielittlewood.xyz> |
| 56 | ;;; Copyright © 2026 bdunahu <bdunahu@operationnull.com> | 56 | ;;; Copyright © 2026 bdunahu <bdunahu@operationnull.com> |
| 57 | ;;; Copyright © 2026 Cayetano Santos <csantosb@inventati.org> | 57 | ;;; Copyright © 2026 Cayetano Santos <csantosb@inventati.org> |
| 58 | ;;; Copyright © 2026 Emmanouil Fragkiskos Ragkousis <manolis837@gmail.com> | ||
| 58 | ;;; | 59 | ;;; |
| 59 | ;;; This file is part of GNU Guix. | 60 | ;;; This file is part of GNU Guix. |
| 60 | ;;; | 61 | ;;; |
| @@ -2635,7 +2636,7 @@ Google's C++ code base.") | |||
| 2635 | (define-public miniaudio | 2636 | (define-public miniaudio |
| 2636 | (package | 2637 | (package |
| 2637 | (name "miniaudio") | 2638 | (name "miniaudio") |
| 2638 | (version "0.11.22") | 2639 | (version "0.11.25") |
| 2639 | (source | 2640 | (source |
| 2640 | (origin | 2641 | (origin |
| 2641 | (method git-fetch) | 2642 | (method git-fetch) |
| @@ -2644,7 +2645,8 @@ Google's C++ code base.") | |||
| 2644 | (commit version))) | 2645 | (commit version))) |
| 2645 | (file-name (git-file-name name version)) | 2646 | (file-name (git-file-name name version)) |
| 2646 | (sha256 | 2647 | (sha256 |
| 2647 | (base32 "1pjaiq71x24n9983vkhjxrsbraa24053h727db22b1rb2xyfrzm3")))) | 2648 | (base32 "0v5pk1kfs7gyfsh4n7ypamyd26vckkyx0dm6dm7q6y7fkzlzhkfs")) |
| 2649 | (patches (search-patches "miniaudio-CVE-2026-32837.patch")))) | ||
| 2648 | (build-system gnu-build-system) | 2650 | (build-system gnu-build-system) |
| 2649 | (arguments | 2651 | (arguments |
| 2650 | (list | 2652 | (list |
| @@ -2690,6 +2692,7 @@ Google's C++ code base.") | |||
| 2690 | (description | 2692 | (description |
| 2691 | "Miniaudio is an audio playback and capture library for C and C++. It is | 2693 | "Miniaudio is an audio playback and capture library for C and C++. It is |
| 2692 | made up of a single source file and has no external dependencies.") | 2694 | made up of a single source file and has no external dependencies.") |
| 2695 | (properties '((lint-hidden-cve "CVE-2026-32837"))) | ||
| 2693 | (license license:expat))) | 2696 | (license license:expat))) |
| 2694 | 2697 | ||
| 2695 | ;; Deprecated on 2026-07-08. | 2698 | ;; Deprecated on 2026-07-08. |
diff --git a/gnu/packages/patches/miniaudio-CVE-2026-32837.patch b/gnu/packages/patches/miniaudio-CVE-2026-32837.patch new file mode 100644 index 00000000000..dc8eeab913b --- /dev/null +++ b/gnu/packages/patches/miniaudio-CVE-2026-32837.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | Fix CVE-2026-32837, a heap out-of-bounds read in the WAV BEXT metadata | ||
| 2 | parser. Backported from upstream commit | ||
| 3 | 1df46ae9a0eed5aa9f58b179d2cc4af5d23f8bde. | ||
| 4 | |||
| 5 | diff --git a/miniaudio.h b/miniaudio.h | ||
| 6 | index b9fa5c8..38e54e8 100644 | ||
| 7 | --- a/miniaudio.h | ||
| 8 | +++ b/miniaudio.h | ||
| 9 | @@ -80804,8 +80804,9 @@ static ma_uint64 ma_dr_wav__read_bext_to_metadata_obj(ma_dr_wav__metadata_parse | ||
| 10 | if (extraBytes > 0) { | ||
| 11 | pMetadata->data.bext.pCodingHistory = (char*)ma_dr_wav__metadata_get_memory(pParser, extraBytes + 1, 1); | ||
| 12 | MA_DR_WAV_ASSERT(pMetadata->data.bext.pCodingHistory != NULL); | ||
| 13 | - bytesRead += ma_dr_wav__metadata_parser_read(pParser, pMetadata->data.bext.pCodingHistory, extraBytes, NULL); | ||
| 14 | - pMetadata->data.bext.codingHistorySize = (ma_uint32)ma_dr_wav__strlen(pMetadata->data.bext.pCodingHistory); | ||
| 15 | + pMetadata->data.bext.codingHistorySize = ma_dr_wav__metadata_parser_read(pParser, pMetadata->data.bext.pCodingHistory, extraBytes, NULL); | ||
| 16 | + pMetadata->data.bext.pCodingHistory[pMetadata->data.bext.codingHistorySize] = '\0'; | ||
| 17 | + bytesRead += pMetadata->data.bext.codingHistorySize; | ||
| 18 | } else { | ||
| 19 | pMetadata->data.bext.pCodingHistory = NULL; | ||
| 20 | pMetadata->data.bext.codingHistorySize = 0; | ||
