Researchers Demonstrate OpenBSD Root Exploit Chaining 37-Year-Old Shared-Memory Bug
A security firm published code showing how a long-standing bug and a kernel flaw combine to gain root access on OpenBSD.
Overview
Researchers demonstrated a method to gain full control of OpenBSD 7.9 by combining a 37-year-old integer overflowA math bug where a number in a program grows larger than its storage size and wraps around with a separate kernelThe core part of an operating system that manages memory, hardware, and every running program flaw. This exploitA piece of code or technique that uses a software flaw to break into or crash a system bypasses OpenBSD's KARL kernel-address randomization and its SMAP and SMEP hardware protections. The integer overflow in the shmat(4) attach function was fixed in errata 018, which shipped on September 14 as a reliability fix. A separate use-after-freeA memory bug where a program keeps using a memory slot after releasing it flaw was fixed in errata 026, shipped on September 30 as a security fix. Both fixes are available through syspatch and cover all architectures, with OpenBSD 7.8 also receiving the integer-overflow fix. No CVEThe public tracking code assigned to a specific known security flaw in software or hardware has been assigned for either flaw, and there is no evidence that the vulnerabilities have been used in attacks.
Terms in this story
- integer overflow
- A math bug where a number in a program grows larger than its storage size and wraps around. In an integer overflow, adding to a maximum value wraps the number back to zero or a negative value, which can trick a program into allocating a tiny memory buffer.
- kernel
- The core part of an operating system that manages memory, hardware, and every running program. Because the kernel has complete control over the computer, a kernel vulnerability or malicious kernel driver lets an attacker bypass security software that runs at the normal program level.
- Exploit
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- use-after-free
- A memory bug where a program keeps using a memory slot after releasing it. Software makers frequently patch use-after-free bugs because an attacker can fill that freed memory slot with crafted data and trick the program into running malicious code.
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- Root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- local privilege escalation
- A flaw that lets an attacker who already has a low-level login on a machine gain administrator control. Unlike a remote flaw that works across the internet, local privilege escalation requires the attacker to get code running on the computer first and then step up to full system rights.
- privilege escalation
- A flaw or trick that lets a low-level user account gain administrator control over a system. After breaking into a regular guest or employee account, an attacker uses privilege escalation to gain full system rights and disable security tools. Security+ objective 2.4 lists the term
- patches
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- bit
- 1 binary digit, a 1 or a 0 (a switch that is on or off). Every file, network packet, and cryptographic key in a computer is stored as a long sequence of bits, and key strength is measured by how many bits the key contains. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- race condition
- A timing bug where two operations run at once and their order changes the result unexpectedly. An attacker can exploit a race condition by sending two requests at the exact same instant, such as withdrawing the same balance twice before the server updates the account. Security+ objective 2.3 lists the term
- out-of-bounds write
- A memory bug where a program writes data past the end of its allocated buffer. An out-of-bounds write can corrupt nearby variables or return addresses in memory, crashing the program or letting an attacker hijack what code runs next.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"A local privilege escalation exploit published today gains root on OpenBSD 7.9..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"......Demonstrate OpenBSD Root Exploit Chaining 37-Year-Old Shared-Memory Bug..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Researchers Demonstrate OpenBSD Root Exploit Chaining 37-Year-Old Shared-Memory Bug..." Found in the headline - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"A local privilege escalation exploit published today gains root on OpenBSD..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Big Fish: OpenBSD Root Exploit Chains a 37-Year-Old BSD Bug With a Kernel Flaw
- The 37-Year Old Bug: How a Legacy OpenBSD Code Enabled a Root Exploit on OpenBSD 7.9 Despite KARL, SMAP and SMEP
- OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root
- 37-Year-Old Kernel Flaw Exploited to Gain Root Access on OpenBSD — PoC Released