Vulnerabilities / Threats

6/21/2017
07:15 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

'Stack Clash' Smashed Security Fix in Linux

Linux, OpenBSD, Free BSD, Solaris security updates available to thwart newly discovered attack by researchers.

What's old is new again: an exploit protection mechanism for a known flaw in the Linux kernel has fallen to a new attack targeting an old problem.

The so-called Stack Clash vulnerability, which was discovered and disclosed by Qualys, affects Linux, OpenBSD, NetBSD, FreeBSD, and Solaris, on i386 and amd64 processors. These platforms earlier this week received patches for the vulnerability, a memory management flaw in the Linux kernel that could allow attackers to bypass security controls previously put in place to prevent memory management attacks on Linux-based servers, appliances, and even Internet of Things devices.

Qualys developed seven exploits and proof-of-concepts to demonstrate the vulnerability, which could be used by an attacker to corrupt memory and run malicious code and ultimately gain control of a targeted machine. Researchers at Qualys are urging organizations to update their Linux plaforms immediately for the flaw.

"It [the flaw] has to do with the memory management of these systems, so it's widespread in terms of scope," says Jimmy Graham, director of the product protection team at Qualys. Graham says it allows a privilege escalation-type attack.

What makes this particular vulnerability unique is that it bypasses controls and mitigations that Linux developers put in place to prevent memory-management attacks. "It shows that the specific mitigation is not effective," he says.

The attack that StackClash executes really isn't new: The concept of the memory management/pressure attack was first employed by researchers in 2005, and again in 2010. Linux developers responded to those disclosures with the so-called StackGuard Page security mitigation for the operating system - which Stack Clash cheats. "We bypassed StackGuard Page … to jump into [Linux] memory," Graham notes.

Stack Clash, which require local access to the targeted Linux machine, works like this: it overwrites a region in the kernel memory called the stack, causing confusion in the memory and allowing an attacker to "clash" with another memory region. Qualys researchers used local privilege escalation exploits against the flaw to gain full root privileges to the targeted system.

What makes the attack especially dangerous is that it can be "chained" with another vulnerability to escalate into a deeper and more pervasive attack. An attacker could employ SQL injection as well and escalate the attack to reach other shared systems in the victim organization, according to Qualys, specifically in shared, multi-tenant systems.

"This affects any kind of Linux or BSD system – appliances to back-end equipment to Web servers," Graham says.

Don Bailey, founder and CEO of Lab Mouse Security, says while these memory pressure vulnerabilities have been well-documented, Stack Clash demonstrates just how widely these flaws can be exploited by attackers.

"The design of the operating system and how it reacts to memory pressure: that's fascinating research. This opens a whole new world of embedded systems that rely on Linux … which can be vulnerable as well to this style of attacks," he says. And the obvious problem of little or no patching of embedded systems puts them even more at risk.

While Stack Clash is a local attack, Qualys researchers haven't ruled out the possibility of remote attacks via the flaw as well.

"Our research has mainly focused on local exploitation: as of this writing on June 19, 2017, we do not know of any remotely exploitable application. However, remote exploitation of the Stack Clash is not excluded; although local exploitation will always be easier, and remote exploitation will be very application-specific," Qualys wrote in a blog post on the attack.

Qualys also published technical details on Stack Clash (CVE-2017-1000364), in a security advisory as well as related flaws CVE-2017-1000365), and CVE-2017-1000367).

Related Content:

Black Hat USA returns to the fabulous Mandalay Bay in Las Vegas, Nevada, July 22-27, 2017. Click for information on the conference schedule and to register.

Kelly Jackson Higgins is Executive Editor at DarkReading.com. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
'PowerSnitch' Hacks Androids via Power Banks
Kelly Jackson Higgins, Executive Editor at Dark Reading,  12/8/2018
Windows 10 Security Questions Prove Easy for Attackers to Exploit
Kelly Sheridan, Staff Editor, Dark Reading,  12/5/2018
Starwood Breach Reaction Focuses on 4-Year Dwell
Curtis Franklin Jr., Senior Editor at Dark Reading,  12/5/2018
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
10 Best Practices That Could Reshape Your IT Security Department
This Dark Reading Tech Digest, explores ten best practices that could reshape IT security departments.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2018-20050
PUBLISHED: 2018-12-10
Mishandling of an empty string on the Jooan JA-Q1H Wi-Fi camera with firmware 21.0.0.91 allows remote attackers to cause a denial of service (crash and reboot) via the ONVIF GetStreamUri method and GetVideoEncoderConfigurationOptions method.
CVE-2018-20051
PUBLISHED: 2018-12-10
Mishandling of '>' on the Jooan JA-Q1H Wi-Fi camera with firmware 21.0.0.91 allows remote attackers to cause a denial of service (crash and reboot) via certain ONVIF methods such as CreateUsers, SetImagingSettings, GetStreamUri, and so on.
CVE-2018-20029
PUBLISHED: 2018-12-10
The nxfs.sys driver in the DokanFS library 0.6.0 in NoMachine before 6.4.6 on Windows 10 allows local users to cause a denial of service (BSOD) because uninitialized memory can be read.
CVE-2018-1279
PUBLISHED: 2018-12-10
Pivotal RabbitMQ for PCF, all versions, uses a deterministically generated cookie that is shared between all machines when configured in a multi-tenant cluster. A remote attacker who can gain information about the network topology can guess this cookie and, if they have access to the right ports on ...
CVE-2018-15800
PUBLISHED: 2018-12-10
Cloud Foundry Bits Service, versions prior to 2.18.0, includes an information disclosure vulnerability. A remote malicious user may execute a timing attack to brute-force the signing key, allowing them complete read and write access to the the Bits Service storage.