public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libnfs] epel10: Add upstream patch for CVE-2026-53689
@ 2026-08-12 23:05 Xavier Bachelot
0 siblings, 0 replies; only message in thread
From: Xavier Bachelot @ 2026-08-12 23:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libnfs
Branch : epel10
Commit : ed7c30efd23dac35da5b5984677fbfd650f21bf1
Author : Xavier Bachelot <xavier@bachelot.org>
Date : 2026-08-13T00:48:02+02:00
Stats : +36/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libnfs/c/ed7c30efd23dac35da5b5984677fbfd650f21bf1?branch=epel10
Log:
Add upstream patch for CVE-2026-53689
---
diff --git a/libnfs-6.0.2-CVE-2026-53689.patch b/libnfs-6.0.2-CVE-2026-53689.patch
new file mode 100644
index 0000000..7fb368b
--- /dev/null
+++ b/libnfs-6.0.2-CVE-2026-53689.patch
@@ -0,0 +1,28 @@
+From 55c18ea33a83d667f79f0ef209c96895795c729f Mon Sep 17 00:00:00 2001
+From: Ronnie Sahlberg <ronniesahlberg@gmail.com>
+Date: Wed, 10 Jun 2026 11:43:28 +1000
+Subject: [PATCH] ZDR: check the string size for sanity
+
+It could otherwise cause an overflow in the bounds check later.
+
+Reported-by: Nick Hummel <nickhummel@google.com>
+Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
+---
+ lib/libnfs-zdr.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/libnfs-zdr.c b/lib/libnfs-zdr.c
+index 2945dc49..357b2746 100644
+--- a/lib/libnfs-zdr.c
++++ b/lib/libnfs-zdr.c
+@@ -318,7 +318,9 @@ bool_t libnfs_zdr_string(ZDR *zdrs, char **strp, uint32_t maxsize)
+ if (!libnfs_zdr_u_int(zdrs, &size)) {
+ return FALSE;
+ }
+-
++ if (size > zdrs->size) {
++ return FALSE;
++ }
+ if (zdrs->pos + (int)size > zdrs->size) {
+ return FALSE;
+ }
diff --git a/libnfs.spec b/libnfs.spec
index b0650ed..93d94ed 100644
--- a/libnfs.spec
+++ b/libnfs.spec
@@ -1,6 +1,6 @@
Name: libnfs
Version: 5.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Client library for accessing NFS shares over a network
# The library is licensed as LGPL-2.1-or-later
# The protocol definition is BSD-2-Clause
@@ -9,6 +9,9 @@ License: LGPL-2.1-or-later AND BSD-2-Clause AND GPL-3.0-or-later
URL: https://github.com/sahlberg/libnfs
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
+# https://github.com/sahlberg/libnfs/commit/55c18ea33a83d667f79f0ef209c96895795c729f
+Patch2: libnfs-6.0.2-CVE-2026-53689.patch
+
BuildRequires: gcc
BuildRequires: automake
BuildRequires: libtool
@@ -48,6 +51,7 @@ NFS servers using libnfs.
%prep
%setup -q -n %{name}-%{name}-%{version}
+%patch -P2 -p1
autoreconf -vif
%build
@@ -81,6 +85,9 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_mandir}/man1/nfs-*.1*
%changelog
+* Mon Aug 10 2026 Xavier Bachelot <xavier@bachelot.org> - 5.0.3-3
+- Add upstream patch for CVE-2026-53689
+
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-12 23:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 23:05 [rpms/libnfs] epel10: Add upstream patch for CVE-2026-53689 Xavier Bachelot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox