FS#70758 - [lout] CVE-2019-19917 CVE-2019-19918 FTBFS

Attached to Project: Community Packages
Opened by loqs (loqs) - Saturday, 08 May 2021, 19:34 GMT
Last edited by George Rawlinson (rawlinsong) - Saturday, 18 December 2021, 16:03 GMT
Task Type Bug Report
Category Security
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


CVE-2019-19917 Lout 3.40 has a buffer overflow in the StringQuotedWord() function in z39.c.
CVE-2019-19918 Lout 3.40 has a heap-based buffer overflow in the srcnext() function in z02.c.

lout fails to build from source due to missing systemd in make depends so sysusers.d is not available to create the users group [1].
Patch fixing both CVEs from Fedora [2]. PKGBUILD.diff [3] also adjusts the custom Makefile to use CPPFLAGS CFLAGS and LDFLAGS so adds FULL RELRO e.t.c..

Additional info:
* lout 3.40-2
[1] lout-3.40-2-x86_64-package.log
[2] https://src.fedoraproject.org/rpms/lout/blob/rawhide/f/lout-3.40-cve.patch
[3] PKGBUILD.diff

Steps to reproduce:
Build package in a clean chroot.
This task depends upon

Closed by  George Rawlinson (rawlinsong)
Saturday, 18 December 2021, 16:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Changed upstream source since original upstream is dead. New upstream fixes the CVEs.