Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698610 (CVE-2019-18218) - <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: RESOLVED FIXED
Alias: CVE-2019-18218
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]
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-27 00:26 UTC by GLSAMaker/CVETool Bot
Modified: 2020-03-15 14:37 UTC (History)
1 user (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 (RETIRED) gentoo-dev 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 (RETIRED) gentoo-dev 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 archtester 2019-10-30 22:51:41 UTC
sparc stable
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-11-01 10:35:54 UTC
arm stable
Comment 7 Rolf Eike Beer archtester 2019-11-02 16:34:55 UTC
hppa stable
Comment 8 Aaron Bauman (RETIRED) gentoo-dev 2019-11-06 21:51:39 UTC
arm64 stable
Comment 9 Mikle Kolyada (RETIRED) 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.
Comment 14 Larry the Git Cow gentoo-dev 2020-03-15 04:54:00 UTC
The bug has been referenced in the following commit(s):

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

commit 6a99aaca71e0abc25aab4ae9d3a956eeff3e3968
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-03-15 04:53:44 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-03-15 04:53:44 +0000

    sys-apps/file: security cleanup (bug #698610)
    
    Bug: https://bugs.gentoo.org/698610
    Package-Manager: Portage-2.3.94, Repoman-2.3.21
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-apps/file/Manifest         |   1 -
 sys-apps/file/file-5.36.ebuild | 126 -----------------------------------------
 2 files changed, 127 deletions(-)

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

commit 0000f84ba4fc67e6869cffb4437d5b94fcf3d279
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-03-15 04:53:03 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-03-15 04:53:03 +0000

    sys-apps/file: mark m68k & sh stable (bug #698610)
    
    Bug: https://bugs.gentoo.org/698610
    Package-Manager: Portage-2.3.94, Repoman-2.3.21
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-apps/file/file-5.37-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 15 Thomas Deutschmann (RETIRED) gentoo-dev 2020-03-15 04:54:32 UTC
New GLSA request filed.
Comment 16 GLSAMaker/CVETool Bot gentoo-dev 2020-03-15 14:37:13 UTC
This issue was resolved and addressed in
 GLSA 202003-24 at https://security.gentoo.org/glsa/202003-24
by GLSA coordinator Thomas Deutschmann (whissi).