public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/geos] f44: Backport fix for CVE-2026-137070
Date: Fri, 27 Nov 2026 11:44:30 GMT [thread overview]
Message-ID: <179577987096.1.5222034675853651331.rpms-geos-d4045b92a1f1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/geos
Branch : f44
Commit : d4045b92a1f18f0bd9c07adbbea5acf76b396a9b
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-11-27T12:44:21+01:00
Stats : +58/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/geos/c/d4045b92a1f18f0bd9c07adbbea5acf76b396a9b?branch=f44
Log:
Backport fix for CVE-2026-137070
---
diff --git a/CVE-2026-137070.patch b/CVE-2026-137070.patch
new file mode 100644
index 0000000..73253a1
--- /dev/null
+++ b/CVE-2026-137070.patch
@@ -0,0 +1,50 @@
+diff -rupN --no-dereference geos-3.14.1/src/operation/predicate/RectangleContains.cpp geos-3.14.1-new/src/operation/predicate/RectangleContains.cpp
+--- geos-3.14.1/src/operation/predicate/RectangleContains.cpp 2025-10-27 16:13:40.000000000 +0100
++++ geos-3.14.1-new/src/operation/predicate/RectangleContains.cpp 2026-11-27 12:43:36.318343166 +0100
+@@ -24,6 +24,7 @@
+ #include <geos/geom/LineString.h>
+ #include <geos/geom/Coordinate.h>
+ #include <geos/geom/CoordinateSequence.h>
++#include <geos/util.h>
+
+ using namespace geos::geom;
+
+@@ -34,6 +35,8 @@ namespace predicate { // geos.operation.
+ bool
+ RectangleContains::contains(const Geometry& geom)
+ {
++ util::ensureNoCurvedTypes(geom);
++
+ if(! rectEnv.contains(geom.getEnvelopeInternal())) {
+ return false;
+ }
+diff -rupN --no-dereference geos-3.14.1/tests/unit/geom/prep/PreparedGeometryTest.cpp geos-3.14.1-new/tests/unit/geom/prep/PreparedGeometryTest.cpp
+--- geos-3.14.1/tests/unit/geom/prep/PreparedGeometryTest.cpp 2025-10-27 16:13:40.000000000 +0100
++++ geos-3.14.1-new/tests/unit/geom/prep/PreparedGeometryTest.cpp 2026-11-27 12:43:36.318561562 +0100
+@@ -3,6 +3,7 @@
+
+ // tut
+ #include <tut/tut.hpp>
++#include <tut/tut_macros.hpp>
+ #include <utility.h>
+ // geos
+ #include <geos/geom/prep/PreparedGeometryFactory.h>
+@@ -99,5 +100,18 @@ void object::test<3>
+ ensure( pg1->contains(g2.get()) );
+ }
+
++template<>
++template<>
++void object::test<4>()
++{
++ set_test_name("CircularString contained in Polygon");
++
++ g1 = reader.read("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))");
++ g2 = reader.read("CIRCULARSTRING (1 5, 5 1, 9 5)");
++
++ pg1 = prep::PreparedGeometryFactory::prepare(g1.get());
++
++ ensure_THROW(pg1->contains(g2.get()), geos::util::GEOSException);
++}
+
+ } // namespace tut
diff --git a/geos.spec b/geos.spec
index 6c2c9ae..a452483 100644
--- a/geos.spec
+++ b/geos.spec
@@ -8,13 +8,17 @@
Name: geos
Version: 3.14.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: GEOS is a C++ port of the Java Topology Suite
License: LGPL-2.1-only
URL: http://trac.osgeo.org/geos/
Source0: http://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
+# Backport fix for CVE-2026-137070
+# https://github.com/libgeos/geos/commit/b6754aa2eb591a2bdabfe7f730c1e3c9c71408e5
+Patch0: CVE-2026-137070.patch
+
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
@@ -161,6 +165,9 @@ rm -f %{buildroot}%{mingw64_bindir}/geos-config
%changelog
+* Fri Nov 27 2026 Sandro Mani <manisandro@gmail.com> - 3.14.1-3
+- Backport fix for CVE-2026-137070
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
reply other threads:[~2026-11-27 11:44 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=179577987096.1.5222034675853651331.rpms-geos-d4045b92a1f1@fedoraproject.org \
--to=manisandro@gmail.com \
--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