CVE-2018-7485
unixODBC: Insecure buffer copy in SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium).
Description
The SQLWriteFileDSN function in odbcinst/SQLWriteFileDSN.c in unixODBC 2.3.5 has strncpy arguments in the wrong order, which allows attackers to cause a denial of service or possibly have unspecified other impact.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | unixODBC | 2.3.7-1.ph2 |
| amazon linux 2 | unixODBC, unixODBC-debuginfo, unixODBC-devel | 2.3.1-14.amzn2 |
| Oracle Linux 7 | unixODBC, unixODBC-devel | 2.3.1-14.0.1.el7 |
| Red Hat | unixODBC, unixODBC-devel, unixODBC-kde | no fix listed |
Show all 9 entries from 4 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | unixODBC | 2.3.7-1.ph2 |
| amazon linux 2 | unixODBC | 2.3.1-14.amzn2 |
| amazon linux 2 | unixODBC-debuginfo | 2.3.1-14.amzn2 |
| amazon linux 2 | unixODBC-devel | 2.3.1-14.amzn2 |
| Oracle Linux 7 | unixODBC | 2.3.1-14.0.1.el7 |
| Oracle Linux 7 | unixODBC-devel | 2.3.1-14.0.1.el7 |
| Red Hat | unixODBC | no fix listed |
| Red Hat | unixODBC-devel | no fix listed |
| Red Hat | unixODBC-kde | no fix listed |
References
- http://www.securityfocus.com/bid/103193
- https://access.redhat.com/errata/RHSA-2019:2336
- https://access.redhat.com/security/cve/CVE-2018-7485
- https://github.com/lurcher/unixODBC/commit/45ef78e037f578b15fc58938a3a3251655e71d6f#diff-d52750c7ba4e594410438569d8e2963aL24
- https://linux.oracle.com/cve/CVE-2018-7485.html
- https://linux.oracle.com/errata/ELSA-2019-2336.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-7485
- https://www.cve.org/CVERecord?id=CVE-2018-7485