CVE-2018-7485

NameCVE-2018-7485
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
unixodbc (PTS)jessie2.3.1-3fixed
stretch2.3.4-1fixed
buster, bullseye2.3.6-0.1fixed
bookworm2.3.11-2+deb12u1fixed
sid, trixie2.3.12-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
unixodbcsource(unstable)(not affected)

Notes

- unixodbc <not-affected> (Vulnerable code introduced later)
https://github.com/lurcher/unixODBC/commit/45ef78e037f578b15fc58938a3a3251655e71d6f#diff-d52750c7ba4e594410438569d8e2963aL24
Issue introduced with https://github.com/lurcher/unixODBC/commit/4f9f77fb4204659ec9b7be8745d9e05a539c80b9
when actually fixing another potential (security) issue, "Buffer
overflows and missing null checks in SQLConfigDataSource,
SQLInstallDriverEx, and SQLWriteFileDSN"

Search for package or bug name: Reporting problems