Bug 1665532 (CVE-2018-20532) - CVE-2018-20532 libsolv: NULL pointer dereference in function testcase_read
Summary: CVE-2018-20532 libsolv: NULL pointer dereference in function testcase_read
Alias: CVE-2018-20532
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1652605 1665533 1669562 1669563
Blocks: 1665540
TreeView+ depends on / blocked
Reported: 2019-01-11 16:49 UTC by Laura Pardo
Modified: 2019-09-29 15:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-08-06 19:20:36 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2290 0 None None None 2019-08-06 12:37:06 UTC

Description Laura Pardo 2019-01-11 16:49:59 UTC
A vulnerability was found in libsolv through 0.7.2. There is a NULL pointer dereference at ext/testcase.c (function testcase_read) in libsolvext.a that will cause a denial of service.


Upstream Patch:

Comment 1 Laura Pardo 2019-01-11 16:50:13 UTC
Created libsolv tracking bugs for this issue:

Affects: fedora-all [bug 1665533]

Comment 2 Riccardo Schirone 2019-01-25 16:30:58 UTC
Function testcase_read() read a testcase from a file, however when the file is malformed and it contains a "namespace" entry, a typo in an error check condition in the code makes the program continue with the malformed input, crashing shortly after the check because it tries to access a pointer to NULL.

Comment 4 Riccardo Schirone 2019-01-25 16:44:46 UTC
On Red Hat Enterprise Linux the testsolv program is not shipped with any package, thus the flaw cannot be easily triggered, unless an existing program uses the vulnerable function testcase_read().

Comment 8 errata-xmlrpc 2019-08-06 12:37:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2290 https://access.redhat.com/errata/RHSA-2019:2290

Comment 9 Product Security DevOps Team 2019-08-06 19:20:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Note You need to log in before you can comment on or make changes to this bug.