CVE-2015-1345: Buffer Overflow
It was reported [1] that invoking grep with a carefully crafted combination of input and regexp can cause a segfault and/or reading from uninitialized memory.
Upstream bugreport: http://bugs.gnu.org/19563 Upstream fix: http://git.sv.gnu.org/cgit/grep.git/commit/?id=83a95bd8c8561875b948cadd417c653dbe7ef2e2
[1]: http://seclists.org/oss-sec/2015/q1/179
Other sources
The bmexectrans function in kwset.c in grep 2.19 through 2.21 allows local users to cause a denial of service (out-of-bounds heap read and crash) via crafted input when using the -F option.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
grepto a version that resolves this vulnerability.Patch 83a95bd8c8561875b948cadd417c653dbe7ef2e2
Event History
Frequently Asked Questions
What is the severity of CVE-2015-1345?
CVE-2015-1345 is classified as a denial of service vulnerability, allowing local users to cause a crash.
How do I fix CVE-2015-1345?
To fix CVE-2015-1345, upgrade GNU Grep to version 2.22 or later.
Which versions of grep are affected by CVE-2015-1345?
CVE-2015-1345 affects GNU Grep versions 2.19 through 2.21.
Can CVE-2015-1345 be exploited remotely?
No, CVE-2015-1345 requires local user access to exploit.
What happens if I don't address CVE-2015-1345?
If not addressed, CVE-2015-1345 could lead to application crashes due to crafted input.