June 22, 2017 By Mark Samuels 2 min read

A vulnerability known as the Stack Clash bug could be exploited by attackers to gain full root privileges. Security firm Qualys reported the bug, which affects memory management in Linux and Unix-based operating systems. The vulnerability is known as Stack Clash because it occurs when attackers force an application’s stack to clash with another memory region.

Researchers at Qualys worked with vendors to create patches, which are now available. News of the bug should serve as a timely reminder to IT managers about the importance of both updates and patch management for all operating systems.

Dissecting the Stack Clash Bug

The stack in a computer grows automatically when the computer needs additional memory. However, if the stack gets too large and encroaches on another memory region, the program may not be able to distinguish between the two. “An attacker can exploit this confusion to overwrite the stack with the other memory region, or the other way around,” the researchers wrote.

The concept of stack clashing is nothing new. Qualys explained that the stack was first exploited in 2005 and emerged again in 2010. Although Linux subsequently attempted to introduce a protective measure known as the stack guard page, stack clashes remain widespread and exploitable.

Qualys found several other secondary vulnerabilities directly related to the primary Stack Clash bug. Attackers are likely to chain the vulnerabilities to more effectively execute malicious code. An actor with access to an affected system could obtain full root privileges.

Understanding the Risk

Qualys developed seven exploits and seven proof-of-concept (PoC) codes to highlight the extent of the security hole. The firm then worked closely with vendors to develop patches before releasing news of the vulnerability to the wider IT community.

The researchers reported that they were not aware of any remotely exploitable applications. However, vulnerable apps could theoretically facilitate remote exploitation, according to ZDNet.

The update provides the easiest and safest way for IT managers and users to protect their systems, according to the Qualys. Patches for all flavors of operating systems have been available since June 19.

Patch Management and Testing Are Critical

Businesses should always keep their operating systems up to date. In the case of the Stack Clash bug, Qualys strongly advised IT managers to place a high priority on patching the vulnerabilities immediately.

Managing multiple patches is no straightforward task, especially when an IT team is responsible for many machines. Effective security starts with strong patch management procedures and an up-to-date view of internal infrastructure.

IT decision-makers should work with their business peers to decide which areas of the technology environment are most important and which systems should be patched first. Security teams should always test patches before they are applied in a production environment. Such testing can help IT teams avoid potentially costly downtime.

More from

SoaPy: Stealthy enumeration of Active Directory environments through ADWS

10 min read - Introduction Over time, both targeted and large-scale enumeration of Active Directory (AD) environments have become increasingly detected due to modern defensive solutions. During our internship at X-Force Red this past summer, we noticed FalconForce’s SOAPHound was becoming popular for enumerating Active Directory environments. This tool brought a new perspective to Active Directory enumeration by performing collection via Active Directory Web Services (ADWS) instead of directly through Lightweight Directory Access Protocol (LDAP) as other AD enumeration tools had in the past.…

Smoltalk: RCE in open source agents

26 min read - Big shoutout to Hugging Face and the smolagents team for their cooperation and quick turnaround for a fix! Introduction Recently, I have been working on a side project to automate some pentest reconnaissance with AI agents. Just after I started this project, Hugging Face announced the release of smolagents, a lightweight framework for building AI agents that implements the methodology described in the ReAct paper, emphasizing reasoning through iterative decision-making. Interestingly, smolagents enables agents to reason and act by generating…

4 ways to bring cybersecurity into your community

4 min read - It’s easy to focus on technology when talking about cybersecurity. However, the best prevention measures rely on the education of those who use technology. Organizations training their employees is the first step. But the industry needs to expand the concept of a culture of cybersecurity and take it from where it currently stands as an organizational responsibility to a global perspective.When every person who uses technology — for work, personal use and school — views cybersecurity as their responsibility, it…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today