Bug 1997147

Summary: CVE-2021-39359 libgda: missing TLS certificate verification [epel-7]
Product: [Fedora] Fedora EPEL Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: libgdaAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: epel7CC: decathorpe, gwync, karlthered, lkundrak
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 15:40:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1997144    

Description Guilherme de Almeida Suckevicz 2021-08-24 14:04:05 UTC
This is an automatically created tracking bug!  It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.

For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.

For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs

When submitting as an update, use the fedpkg template provided in the next
comment(s).  This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.

Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.

Comment 1 Guilherme de Almeida Suckevicz 2021-08-24 14:04:07 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=1997144,1997147

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Gwyn Ciesla 2021-12-22 17:42:33 UTC
Can patch, but build fails with or without patch on epel7: 
gcc -o lemon ./lemon.c
( cd . && glib-mkenums \
                --fhead "#ifndef __LIBGDA_SQL_PARSER_ENUM_TYPES_H__\n#define __LIBGDA_SQL_PARSER_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
		--vhead "GType @enum_name@_get_type (void);\n#define GDA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" 	\
		--ftail "G_END_DECLS\n\n#endif /* __LIBGDA_ENUM_TYPES_H__ */" \
	gda-sql-parser.h gda-sql-statement.h gda-statement-struct-decl.h gda-statement-struct.h gda-statement-struct-compound.h gda-statement-struct-delete.h gda-statement-struct-update.h gda-statement-struct-insert.h gda-statement-struct-parts.h gda-statement-struct-pspec.h gda-statement-struct-select.h gda-statement-struct-trans.h gda-statement-struct-unknown.h gda-statement-struct-util.h) > tmp-gda-enum-types.h \
&& (cmp -s tmp-gda-enum-types.h gda-sql-parser-enum-types.h || cp tmp-gda-enum-types.h gda-sql-parser-enum-types.h ) \
&& rm -f tmp-gda-enum-types.h	\
&& echo timestamp > s-enum-types-h
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/bin/glib-mkenums", line 711, in <module>
    process_file(fname)
  File "/usr/bin/glib-mkenums", line 441, in process_file
    line = curfile.readline()
  File "/usr/lib64/python2.7/codecs.py", line 296, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
  File "/usr/bin/glib-mkenums", line 93, in replace_and_warn
    err.object[err.start - 7:err.end + 7]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 7: ordinal not in range(128)
  File "/usr/bin/glib-mkenums", line 711, in <module>
    process_file(fname)
  File "/usr/bin/glib-mkenums", line 441, in process_file
    line = curfile.readline()
  File "/usr/lib64/python2.7/codecs.py", line 296, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
  File "/usr/bin/glib-mkenums", line 93, in replace_and_warn
    err.object[err.start - 7:err.end + 7]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 7: ordinal not in range(128)
make[2]: *** [s-enum-types-c] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [s-enum-types-h] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/libgda-5.2.2/libgda/sql-parser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/libgda-5.2.2/libgda'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.kHrcDF (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.kHrcDF (%build)
Child return code was: 1

Comment 3 Troy Dawson 2024-07-09 15:40:30 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.  EPEL 7 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.