XPost: linux.debian.bugs.dist
Package: release.debian.org
Severity: normal
Tags: bookworm
User:
[email protected]
Usertags: pu
X-Debbugs-Cc:
[email protected]
Control: affects -1 + src:fig2dev
[ Reason ]
This fixes CVE-2025-31162, CVE-2025-31163, CVE-2025-31164
(segmentation faults in the pict2e driver of fig2dev).
[ Impact ]
Segmentation faults with some special cases and a minor security
issue.
[ Tests ]
salsa-ci passed except reprotest (this seems to build the package with
sid instead of bookworm, with uses a newer different ghostscript
version, resulting in a slightly different gray rastering with two
more dots in an example, so one test in the testsuite fails):
https://salsa.debian.org/debian/fig2dev/-/pipelines/840929
The patches for CVE-2025-31163 and CVE-2025-31164 add new test cases
(for these bugs) which run successfully.
[ Risks ]
Hopefully none...
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
- fix for CVE-2025-31162
- fix for CVE-2025-31163
- fix for CVE-2025-31164
- Change in debian/salsa-ci.yml to build with bookworm instead of sid
[ Other info ]
I was asked by Salvatore Bonaccorso <
[email protected]> from the
security team to upload this to the next point release instead of
fixing via DSA, because of the low severity of the CVEs.
Greetings
Roland
diff -Nru fig2dev-3.2.8b/debian/changelog fig2dev-3.2.8b/debian/changelog
--- fig2dev-3.2.8b/debian/changelog 2022-09-20 17:24:07.000000000 +0200
+++ fig2dev-3.2.8b/debian/changelog 2025-03-28 22:51:19.000000000 +0100
@@ -1,3 +1,11 @@
+fig2dev (1:3.2.8b-3+deb12u1) bookworm; urgency=medium
+
+ * 38_CVE-2025-31162: Reject huge pattern lengths.
+ * 39_CVE-2025-31163: Reject arcs with co-incident points.
+ * 40_CVE-2025-31164: Allow an arc-box with zero radius.
+
+ -- Roland Rosenfeld <
[email protected]> Fri, 28 Mar 2025 22:51:19 +0100
+
fig2dev (1:3.2.8b-3) unstable; urgency=medium
[ Roland Rosenfeld ]
diff -Nru fig2dev-3.2.8b/debian/patches/38_CVE-2025-31162.patch fig2dev-3.2.8b/debian/patches/38_CVE-2025-31162.patch
--- fig2dev-3.2.8b/debian/patches/38_CVE-2025-31162.patch 1970-01-01 01:00:00.000000000 +0100
+++ fig2dev-3.2.8b/debian/patches/38_CVE-2025-31162.patch 2025-03-28 22:51:19.000000000 +0100
@@ -0,0 +1,27 @@
+From: Thomas Loimer <
[email protected]>
+Date: Wed, 22 Jan 2025 23:18:54 +0100
+Origin: upstream,
https://sourceforge.net/p/mcj/f