Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698610 - <sys-apps/file-5.37-r1: heap-based buffer overflow in cdf_read_property_info in cdf.c (CVE-2019-18218)
Summary: <sys-apps/file-5.37-r1: heap-based buffer overflow in cdf_read_property_info ...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Security
URL: https://bugs.chromium.org/p/oss-fuzz/...
Whiteboard: A2 [glsa? cve cleanup]
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-27 00:26 UTC by GLSAMaker/CVETool Bot
Modified: 2019-11-14 11:56 UTC (History)
3 users (show)

See Also:
Package list:
sys-apps/file-5.37-r1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GLSAMaker/CVETool Bot gentoo-dev 2019-10-27 00:26:57 UTC
Incoming details
Comment 1 Thomas Deutschmann gentoo-dev Security 2019-10-27 00:30:30 UTC
cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, which allows a heap-based buffer overflow (4-byte out-of-bounds write).

Upstream patch: https://github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84
Comment 2 Larry the Git Cow gentoo-dev 2019-10-27 00:41:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4782ac407f7b8744abf6bb7fe9e60bdd2dffa64

commit e4782ac407f7b8744abf6bb7fe9e60bdd2dffa64
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-10-27 00:41:03 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-10-27 00:41:03 +0000

    sys-apps/file: fix CVE-2019-18218
    
    Bug: https://bugs.gentoo.org/698610
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../file/{file-5.37.ebuild => file-5.37-r1.ebuild} |  2 ++
 sys-apps/file/files/file-5.37-CVE-2019-18218.patch | 36 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)
Comment 3 Thomas Deutschmann gentoo-dev Security 2019-10-27 23:21:38 UTC
x86 stable
Comment 4 Agostino Sarubbo gentoo-dev 2019-10-28 09:44:40 UTC
amd64 stable
Comment 5 Rolf Eike Beer 2019-10-30 22:51:41 UTC
sparc stable
Comment 6 Mikle Kolyada archtester Gentoo Infrastructure gentoo-dev Security 2019-11-01 10:35:54 UTC
arm stable
Comment 7 Rolf Eike Beer 2019-11-02 16:34:55 UTC
hppa stable
Comment 8 Aaron Bauman Gentoo Infrastructure gentoo-dev Security 2019-11-06 21:51:39 UTC
arm64 stable
Comment 9 Mikle Kolyada archtester Gentoo Infrastructure gentoo-dev Security 2019-11-08 08:33:11 UTC
s390 stable
Comment 10 Matt Turner gentoo-dev 2019-11-09 22:58:18 UTC
alpha stable
Comment 11 Agostino Sarubbo gentoo-dev 2019-11-12 13:36:25 UTC
ppc64 stable
Comment 12 Agostino Sarubbo gentoo-dev 2019-11-12 18:08:46 UTC
ppc stable
Comment 13 Agostino Sarubbo gentoo-dev 2019-11-14 11:56:14 UTC
ia64 stable.

Maintainer(s), please cleanup.
Security, please add it to the existing request, or file a new one.