The 37-Year Old Bug: How a Legacy OpenBSD Code Enabled a Root Exploit on OpenBSD 7.9 Despite KARL, SMAP and SMEP
A 37-year-old bug in legacy code allowed a chain of flaws to bypass OpenBSD protections and grant local root access.
Overview
A security research firm named Calif disclosed a vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend called Big Fish that allows an attacker to gain full control of an OpenBSD 7.9 system. The exploit uses a 37-year-old bug in the code that tracks how many processes are using shared memory. This flaw lets the system miscalculate a count, which then helps the attacker bypass security features like KARL, SMAP and SMEP. The attack requires the attacker to already have basic access to the computer as a regular user. It is not a remote attack, so it cannot be used against a serverA computer or program on a network that stores data and responds to requests from client devices from the internet without first getting inside. The OpenBSD project has released fixes for this issue in their errata.
Terms in this story
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- 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.
- 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)
- codebase
- The complete collection of source code files used to build a software application or system. Security teams run automated scanners across a company's codebase to catch hardcoded passwords, outdated dependencies, and injection flaws before changes ship to production.
- exploitation
- 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
- 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.
- 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.
- 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.
- root access
- 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.
- information-disclosure
- A software flaw or misconfiguration that unintentionally exposes private data, keys, or system details to unauthorized users. An information disclosure bug might return detailed server error messages, memory contents, or other customers' profile fields that help an attacker plan a deeper break-in.
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 CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (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 signed 16-bit counter inherited from the original BSD codebase is the first link in a kernel exploitation chain..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"The 37-Year Old Bug: How a Legacy OpenBSD Code Enabled..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......a Legacy OpenBSD Code Enabled a Root Exploit on OpenBSD 7.9 Despite KARL, SMAP and..." Found in the headline - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"......and SMEP to achieve local root, plus patches This post first appeared at - The..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in exploiting system vulnerabilities to escalate privileges.
"...chains an integer overflow, a kernel use-after-free..." Found by reading the article; these exact words are in it
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
- OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root
- Researchers Demonstrate OpenBSD Root Exploit Chaining 37-Year-Old Shared-Memory Bug
- 37-Year-Old Kernel Flaw Exploited to Gain Root Access on OpenBSD — PoC Released