public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Richard W.M. Jones <rich@annexia.org>
To: git-commits@fedoraproject.org
Subject: [rpms/hivex] rawhide: New upstream version 1.3.25
Date: Tue, 10 Nov 2026 11:02:34 GMT	[thread overview]
Message-ID: <179430855433.1.18320978707602411656.rpms-hivex-a7fabfcd6638@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hivex
Branch : rawhide
Commit : a7fabfcd663828781dfc6c24db7ea1f64982ed2c
Author : Richard W.M. Jones <rich@annexia.org>
Date   : 2026-11-10T11:02:17+00:00
Stats  : +7/-66 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/hivex/c/a7fabfcd663828781dfc6c24db7ea1f64982ed2c?branch=rawhide

Log:
New upstream version 1.3.25

---
diff --git a/0001-lib-value.c-Avoid-out-of-bounds-read-in-db-record-CV.patch b/0001-lib-value.c-Avoid-out-of-bounds-read-in-db-record-CV.patch
deleted file mode 100644
index 242769c..0000000
--- a/0001-lib-value.c-Avoid-out-of-bounds-read-in-db-record-CV.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From aa9acb0e2e980913ecf9fb47c561fe7988089e89 Mon Sep 17 00:00:00 2001
-From: "Richard W.M. Jones" <rich@annexia.org>
-Date: Sun, 1 Nov 2026 11:50:20 +0000
-Subject: [PATCH] lib/value.c: Avoid out of bounds read in "db" record
- (CVE-2026-120740)
-
-A "db" record in the registry references a list of blocks which get
-concatenated together to return the value.  The list of blocks itself
-is list of values stored in a block, with the number of values
-declared in the nr_blocks field of the db record.
-
-nr_blocks is read from the file, therefore controlled by an attacker.
-
-We did not check that nr_blocks does not exceed the size of the actual
-length of the block containing the list of values, or indeed of the
-entire hive file.
-
-Thus an attacker could cause hivex to read past the end of the hive
-file, resulting in (most likely) a denial of service, or reading other
-memory from the process.
-
-The commit adds the check.
-
-Reported-by: HaiND (Nguyen Dinh Hai), Post and Telecommunication Institute of Technology
-Link: https://hackmd.io/@haindpwn/hivex-value-db-blocklist-oob-read
-Link: https://access.redhat.com/security/cve/CVE-2026-120740
-Link: https://bugzilla.redhat.com/show_bug.cgi?id=2565405
-Fixes: https://github.com/libguestfs/hivex/issues/39
----
- lib/value.c | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-diff --git a/lib/value.c b/lib/value.c
-index 3257b53..862453e 100644
---- a/lib/value.c
-+++ b/lib/value.c
-@@ -408,6 +408,16 @@ hivex_value_value (hive_h *h, hive_value_h value,
-     }
-     struct ntreg_value_list *bl =
-       (struct ntreg_value_list *) ((char *) h->addr + blocklist_offset);
-+    /* nr_blocks is an attacker-controlled field from the db record.
-+     * The block list array must fit inside its own block.
-+     */
-+    size_t bllen = block_len (h, blocklist_offset, NULL);
-+    if (4 + nr_blocks * 4 > bllen) {
-+      SET_ERRNO (EFAULT, "db block list is too long (%zu, %zu)",
-+                 nr_blocks, len);
-+      free (ret);
-+      return NULL;
-+    }
-     size_t i, off;
-     for (i = off = 0; i < nr_blocks; ++i) {
-       size_t subblock_offset = le32toh (bl->offset[i]);
--- 
-2.55.0
-

diff --git a/hivex.spec b/hivex.spec
index 0ea7e10..573b0da 100644
--- a/hivex.spec
+++ b/hivex.spec
@@ -9,8 +9,8 @@
 %global verify_tarball_signature 1
 
 Name:           hivex
-Version:        1.3.24
-Release:        25%{?dist}
+Version:        1.3.25
+Release:        1%{?dist}
 Summary:        Read and write Windows Registry binary hive files
 
 License:        LGPL-2.1-only AND LGPL-2.0-or-later AND GPL-2.0-or-later
@@ -26,12 +26,6 @@ Source1:        http://libguestfs.org/download/hivex/%{name}-%{version}.tar.gz.s
 Source2:       https://download.libguestfs.org/rich@annexia.org-pubkey.txt
 %endif
 
-# Fix for CVE-2026-120740
-# https://access.redhat.com/security/cve/CVE-2026-120740
-# https://bugzilla.redhat.com/show_bug.cgi?id=2565405
-# https://github.com/libguestfs/hivex/commit/aa9acb0e2e980913ecf9fb47c561fe7988089e89
-Patch:          0001-lib-value.c-Avoid-out-of-bounds-read-in-db-record-CV.patch
-
 BuildRequires:  make
 BuildRequires:  autoconf, automake, libtool, gettext-devel
 BuildRequires:  perl-interpreter
@@ -325,6 +319,9 @@ fi
 
 
 %changelog
+* Tue Nov 10 2026 Richard W.M. Jones <rjones@redhat.com> - 1.3.25-1
+- New upstream version 1.3.25
+
 * Thu Nov 05 2026 Richard W.M. Jones <rjones@redhat.com> - 1.3.24-25
 - Avoid out of bounds read in "db" record (CVE-2026-120740)
 

diff --git a/sources b/sources
index 8f29e0c..0af5dff 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (hivex-1.3.24.tar.gz) = 4b9be259e0359344aee2dce1e4df56d928b0e429abcc099479ba95b2940fb80cd285f22e6a914902bcc716e8b4b528f204bea10977913fc701ae45aacb66669b
-SHA512 (hivex-1.3.24.tar.gz.sig) = 2a5c2ccc24ca76c9f1a4c5affa8a63e12acdfad8d8e3800517541f342373dd33990b61b14309a940558e729cefc53fc3ab3e495276dfc3a6891413368db9aed4
+SHA512 (hivex-1.3.25.tar.gz) = 5ef3d6a2522739fd1d1ea5f29ef9c95b680d8164b9312c362ec7ba4cd8921b593f2515726cd0a9b3d9fd2df6fac3e5b3bf92cdf6a5374f64ad9221f2862a7257
+SHA512 (hivex-1.3.25.tar.gz.sig) = 55f0ade8585cb3e9f31fab26c5625003da2e73c841f3f8c3159cd38c090a46321c56e5ac39e12e472b5491a9f40596c51db1d67d0775c2b65ff6d38f20752f34

                 reply	other threads:[~2026-11-10 11:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179430855433.1.18320978707602411656.rpms-hivex-a7fabfcd6638@fedoraproject.org \
    --to=rich@annexia.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox