Out-of-bounds read in YARA - CVE-2017-9465

 

Out-of-bounds read in YARA - CVE-2017-9465

Published: June 7, 2017 / Updated: January 26, 2021


Vulnerability identifier: #VU38890
CSH Severity: Medium
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-9465
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error in The yr_arena_write_data function in YARA 3.6.1. A remote attacker can perform a denial of service (buffer over-read and application crash) or obtain sensitive information from process memory via a crafted file that is mishandled in the yr_re_fast_exec function in libyara/re.c and the _yr_scan_match_callback function in libyara/scan.c.


Affected software

YARA
Fedora
Ubuntu
yara (Ubuntu package)
yara

How to mitigate CVE-2017-9465

Install update from vendor's website.

yara (Ubuntu package) - addressed in versions 3.4.0+dfsg-2ubuntu0.1~esm1, 3.7.1-1ubuntu2+esm1, 3.9.0-1ubuntu0.1~esm1
yara - addressed in versions 3.6.2-1.el6, 3.6.2-1.el7, 3.6.2-1.fc24, 3.6.2-1.fc25, 3.6.2-1.fc26, 3.6.3-1.el6, 3.6.3-1.el7

External References

Related Security Bulletins