OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root
A researcher found a 37-year-old flaw in OpenBSD that lets local users gain root access by combining two vulnerabilities.
Overview
A researcher named Andrew Griffiths found a way to gain full control of an OpenBSD computer system by combining two separate software errors. One error involves a counter that tracks shared memory attachments, which can wrap around to negative values after repeated use. This flaw has existed in the code for about 37 years, tracing back to the original BSD sources. The second error is an out-of-bounds writeA memory bug where a program writes data past the end of its allocated buffer that corrupts specific memory counters. Together, these issues allow an attacker to change memory permissionsThe specific rights granted to an account or app to read, write, or run files and services and redirect the system's execution to run their own commands. OpenBSD has already released fixes for both problems through specific errata updates.
Terms in this story
- 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.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- 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.
- 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.
- 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
- root privileges
- 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.
- proof-of-concept
- A working sample of code or steps that shows a reported security flaw can really be triggered. When researchers publish a proof-of-concept for a new bug, defenders can test their own systems, but criminals also watch for that code and adapt it for real attacks.
- 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
- 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
- privileges
- The level of authority an account or process has to change settings, read files, or run commands. Ordinary user accounts run with limited privileges so a single mistake cannot break the operating system, whereas administrator privileges allow installing drivers and viewing all files.
- 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)
- 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.
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 GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (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
Enables Local Privilege Escalation to Root... Found by reading the article; these words are close to its own - Security+ 2.3 Explain various types of vulnerabilities.
"OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root..." Found in the headline - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in exploiting system vulnerabilities to escalate privileges.
"...public proof-of-concept code demonstrating exploitation..." 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
- The 37-Year Old Bug: How a Legacy OpenBSD Code Enabled a Root Exploit on OpenBSD 7.9 Despite KARL, SMAP and SMEP
- 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