Hi, The following vulnerabilities were published for popt. CVE-2026-18739[0]: | A flaw was found in popt, a command-line option parsing library. An | off-by-one error in the poptStuffArgs function, when repeatedly | called by a host application or through deep alias nesting, can lead | to corruption of internal program data. This corruption could | potentially enable a local attacker to execute arbitrary code if the | host application then unsafely processes the altered data. CVE-2026-18839[1]: | An integer underflow was found in the popt library when formatting | help text for option tables that exceed the terminal width. A local | user who can cause an application to print help under those | conditions may cause that application to crash or fail to display | help, resulting in a denial of service of the affected application. AFAICS the only references right now are to the Red Hat bugzilla. If you fix the vulnerabilities please also make sure to include the CVE (Common Vulnerabilities & Exposures) ids in your changelog entry. For further information see: [0] https://security-tracker.debian.org/tracker/CVE-2026-18739 https://www.cve.org/CVERecord?id=CVE-2026-18739 [1] https://security-tracker.debian.org/tracker/CVE-2026-18839 https://www.cve.org/CVERecord?id=CVE-2026-18839 Regards, Salvatore
Hi, Both CVEs are fixed upstream, and the fixes are backported to the popt-1.19.x branch, which is prepared as 1.19.1 (PR #146, merged 2026-10-19). As of today there is no popt-1.19.1 tag or tarball, so I list the individual commits below. CVE-2026-18739 (off-by-one in poptStuffArgs): master: https://www.google.com/url?q=https://github.com/rpm-software-management/popt/commit/14c42b415b&source=gmail&ust=1793764846560000&sa=E (PR #138) 1.19.x: e2dc871d219b8e688bd181fc595996f86c1785cd CVE-2026-18839 (underflows/overflows in help output), PR #142: master: https://www.google.com/url?q=https://github.com/rpm-software-management/popt/commit/af6f19e596&source=gmail&ust=1793764846560000&sa=E 1.19.x: 31f1b81a1b1155746e5ac7caccc0bcaf9af171b7 "Bring in our own allocating printf() variants" f9771bcd15073c2835cbe06a5d65bcbf612675d8 "Fix a bucketful of buffer overflows in popt --help printing" (f9771bc depends on 31f1b81) There is also a fix for CVE-2026-18743, which the tracker marks unimportant: d99846e83eaa034db540f6f96d5d96508e0b5030. Verification: I cherry-picked e2dc871, 31f1b81 and f9771bc onto the popt-1.19-release tag (the base of 1.19+dfsg) and all three apply cleanly (13 files changed, 274 insertions, 43 deletions). I built the library and tests with -fsanitize=address,undefined. I compiled them directly against a hand-written config.h because autotools isn't installed on this machine, and ran tests/testit.sh with ASAN_OPTIONS=detect_leaks=0. The leaks reported in test1 are in the test programs themselves and are fixed by f25322d and b5351bb on the same branch. - Unpatched 1.19: 65/65 pass. - 1.19 + the three backports: 70/70 pass, no sanitizer reports. This includes the new tstuff and test4-1..4 regression tests. - I also built the new regression tests against the unpatched 1.19 library: tstuff (CVE-2026-18739): UBSan "member access within misaligned address", i.e. the poptContext is corrupted test4-1 --help: AddressSanitizer negative-size-param test4-2 --help: AddressSanitizer requested allocation size too large test4-3 --help: AddressSanitizer global-buffer-overflow All of these are clean with the backports. So either cherry-pick those commits into debian/patches or package 1.19.1 once it is tagged. Thanks!
Hello, Bug #1146722 in popt reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/popt/-/commit/088fe4406fbd65f57a53c64d1cf5122be4e7bed0 - CVE-2026-18739: Off-by-one in poptStuffArgs() - CVE-2026-18743: Buffer overflow(s) in poptConfigFileToString() - CVE-2026-18839: Buffer overflows in popt --help printing ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1146722
We believe that the bug you reported is fixed in the latest version of
popt, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1146722@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Håvard F. Aasen <havard.f.aasen@pfft.no> (supplier of updated popt package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 07 Nov 2026 06:37:55 +0100
Source: popt
Architecture: source
Version: 1.19+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Håvard F. Aasen <havard.f.aasen@pfft.no>
Changed-By: Håvard F. Aasen <havard.f.aasen@pfft.no>
Closes: 1146722
Changes:
popt (1.19+dfsg-3) unstable; urgency=medium
.
* Add patches from upstream to fix multiple CVE's, (Closes: #1146722)
- CVE-2026-18739: Off-by-one in poptStuffArgs()
- CVE-2026-18743: Buffer overflow(s) in poptConfigFileToString()
- CVE-2026-18839: Buffer overflows in popt --help printing
* Remove RRR, value is now default.
* Remove Priority field, value is now default.
* Update Standards-Version to 4.7.4.
* Bump debhelper to 14.
Removes now unnecessary 'depends' fields.
* Add reference to local file for GPL2 license.
This fixes a lintian issue with 'wrong fsf address'.
* Update copyright year on myself.
Checksums-Sha1:
d6b35709cecb5074549901d6b7ed69c13cacec7e 2079 popt_1.19+dfsg-3.dsc
c2dea3009e2c9d4ee262a92e76d16b50e579a0ff 17872 popt_1.19+dfsg-3.debian.tar.xz
7c18d6e62a9e5909bdabd63a1a1704c8b8619afa 6475 popt_1.19+dfsg-3_amd64.buildinfo
Checksums-Sha256:
c04301c01bf615b729015cfe68d4dc68981281be55c7b154a71ca7ad462d9d1d 2079 popt_1.19+dfsg-3.dsc
5f90caf64961561273bbeb2ef18e7f4cf042b9cf3a0349c9d9980c1601176f7c 17872 popt_1.19+dfsg-3.debian.tar.xz
d6c7dbb014eed78977a577c35176a68eba0889e1e3398110a93e39afd301f142 6475 popt_1.19+dfsg-3_amd64.buildinfo
Files:
1013c267b1553ac44272a84fa1db9a26 2079 devel optional popt_1.19+dfsg-3.dsc
51b50302cbd1e1473b224bacee4a2884 17872 devel optional popt_1.19+dfsg-3.debian.tar.xz
19a80a124b84da79a354dce8c2081dd7 6475 devel optional popt_1.19+dfsg-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEESl/RzRFQh8wD3DXB1ZeJcgbF8H8FAmrv24gACgkQ1ZeJcgbF
8H9y8xAAqrn3yx4+JcztujN6xSdgOT2FvYzD4QdSFCXeQY/sM7AOO+htaM9o+T3K
D9zO4973m3dtU9LEl83Bmxtmd3Q029oNzo5vJPsvIPa92ImEcIEVUEe4znJoG7tt
D62iiKJyV2dc/DRcr02YpoQt8ny5t5HPZXKlM0BaQiknjxtTwERdveSzAp07UZgo
qveFQl7Nw29AZJ5cOh995O24pnfNspOwep4j2ZS1sEcsyH5Se0ZTtrzkC6efsrM8
dEs5sDKz+03T4S2sh19R8NdDCRgqwiI2QFwo+BxpR7aD6h5SKdZba18jHr5Zs2Vu
zrGLYJ7n3+HCkcI45qS/gqgurLaovDr4O2W/QpIHqW5BnC2Gw6uKwVkYcrVTcHiw
FMaJnCu4pbZ7yt2QPwyv1PggpiFEm+KW6tZPvoB280QY7op5rL/C0MnP3w/SbV+G
C1AmYLF+Zhuq0s5W1Q+8XXDbb7RpDhUoHeljGxu9y9SNPl7cJIfd5Yo6rHNTi9Gj
VSpWST1GcGlapjpEbYAhNvlTzIRoecudyEWukO2IlmZvytiIB0WIn5/CEN8brux3
L/BzzduGXguM+aVM5ccag6m168FC924II8kntKtUI6I8Ra5NYyWCJADEUyVW2s93
7MIEBN/Wkc/QfLySm1pFMkD47VWkx9EHqu9QfNkYz4I8+OFLcG8=
=tjAZ
-----END PGP SIGNATURE-----