CVE-2017-7187 Memory corruption in n/a

High 7.8 Published Updated

Local attackers can trigger a stack-based buffer overflow in the Linux kernel SCSI generic driver via a large command size, causing denial of service or potential code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-7187?

CVE-2017-7187 is a high-severity memory corruption vulnerability in Linux kernel, published on 20 Mar 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The sg_ioctl function in drivers/scsi/sg.c in the Linux kernel through 4.10.4 allows local users to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a large command size in an SG_NEXT_CMD_LEN ioctl call, leading to out-of-bounds write access in the sg_write function.

Weakness: CWE-119

Which versions are affected by CVE-2017-7187?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2017-7187?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2017-7187 being exploited?

There is no known exploitation of CVE-2017-7187 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-7187, GHSA-r45w-6g4r-v8j6, UBUNTU-CVE-2017-7187.

Is CVE-2017-7187 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free