37-Year-Old Kernel Flaw Exploited to Gain Root Access on OpenBSD โ PoC Released
A proof-of-concept exploit gains root access on OpenBSD by chaining two kernel flaws, one of which dates back to the original BSD source code.
Overview
Researchers at Calif found a way to gain root accessThe highest administrator permission level on a system, with unrestricted control over all files and programs on OpenBSD by chaining two kernelThe core part of an operating system that manages memory, hardware, and every running program flaws. The main bug dates back about 37 years to the original BSD source codeThe human-readable programming instructions written by developers before they are compiled into a runnable program. The flaw survived because a shared memory attachment counter named shm_nattch used a signed 16-bit1 binary digit, a 1 or a 0 (a switch that is on or off) value. A local user can push this counter beyond its maximum value of 32,767, causing it to wrap to a negative value. This integer overflowA math bug where a number in a program grows larger than its storage size and wraps around creates a race conditionA timing bug where two operations run at once and their order changes the result unexpectedly that leads to a kernel use-after-freeA memory bug where a program keeps using a memory slot after releasing it. OpenBSD fixed both issues before Calif published the exploit on October 16, 2026.
Terms in this story
- 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.
- 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.
- source code
- The human-readable programming instructions written by developers before they are compiled into a runnable program. When attackers steal a company's private source code from a repository, they can study it to find hidden vulnerabilities or leaked API keys.
- 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)
- 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.
- 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
- 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.
- Exploited
- 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
- proof-of-concept exploit
- 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.
- 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.
- 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.
- memory corruption
- A class of software bugs where a program accidentally overwrites or misreads its own working memory. Buffer overflows and use-after-free bugs are forms of memory corruption that can crash an application or let an attacker redirect the processor to run malicious code. Security+ objective 2.3 lists the term
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 Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security 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
"...proof-of-concept exploit that gains root access on OpenBSD..." Found by reading the article; these exact words are in it - Who is affected: "...local user..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"37-Year-Old Kernel Flaw Exploited to Gain Root Access on OpenBSD..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"37-Year-Old Kernel Flaw Exploited to Gain Root Access on OpenBSD โ..." 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.
"...proof-of-concept exploit that gains root access on OpenBSD..." 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
- 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