Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
OpenBSD Patches Critical 37-Year-Old Kernel Flaw CVE-2023-50782
October 16, 2026
New YuanKong Android RAT Hijacks Phones, Steals Banking Credentials
October 16, 2026
AI-Generated Scripts Exploit Sudo Vulnerability to Hijack Linux Commands
October 16, 2026
Home/CyberSecurity News/OpenBSD Patches Critical 37-Year-Old Kernel Flaw CVE-2023-50782
CyberSecurity News

OpenBSD Patches Critical 37-Year-Old Kernel Flaw CVE-2023-50782

Key Takeaways OpenBSD has patched a critical kernel vulnerability, CVE-2023-50782, traced back 37 years to the original BSD codebase. The flaw involves an integer overflow in the System V shared...

Marcus Rodriguez
Marcus Rodriguez
October 16, 2026 4 Min Read
2 0

Key Takeaways

  • OpenBSD has patched a critical kernel vulnerability, CVE-2023-50782, traced back 37 years to the original BSD codebase.
  • The flaw involves an integer overflow in the System V shared memory attachment counter, leading to a kernel use-after-free condition.
  • Chained with a second bug, local users can achieve root privilege escalation on OpenBSD systems.
  • Fixes are available through OpenBSD’s errata system (Errata 018 and Errata 026) for version 7.9 across all architectures.
  • While no active exploitation in the wild has been reported, proof-of-concept code is publicly available.

Security researchers have uncovered and demonstrated a critical local privilege escalation exploit affecting OpenBSD, designated as CVE-2023-50782. This vulnerability, stemming from a fundamental design choice in the System V shared memory handling, has been present in the operating system’s kernel for approximately 37 years, originating from the initial BSD source code.

Table Of Content

  • Key Takeaways
  • The 37-Year-Old OpenBSD Flaw Unpacked
  • Patches and Mitigation
  • What You Should Do

The exploit, developed by security researchers at Calif, leverages two distinct kernel flaws. The primary vulnerability is an integer overflow in the shm_nattch shared memory attachment counter, which was implemented using a signed 16-bit value. This design oversight allowed the counter to be manipulated, ultimately leading to root access.

OpenBSD proactively addressed both identified issues before Calif’s public disclosure of the exploit on October 16, 2026. The research focuses on a local privilege escalation scenario and does not indicate any observed active exploitation in real-world environments.

The 37-Year-Old OpenBSD Flaw Unpacked

The core of CVE-2023-50782 lies within the System V shared memory handling mechanism. A local attacker can repeatedly create processes with shared memory records, thereby incrementing the shm_nattch counter. Since this counter is a signed 16-bit integer, it can only hold values up to 32,767. Exceeding this limit causes an integer overflow, wrapping the value to a negative number.

This integer overflow creates a race condition, culminating in a kernel use-after-free vulnerability. A secondary flaw provides a controlled out-of-bounds write primitive, which the researchers skillfully combined with the use-after-free to achieve arbitrary memory corruption, ultimately leading to root privileges.

Calif’s proof-of-concept (PoC) exploit meticulously maps 127 shared memory segments, subsequently unmaps them, and then forks 259 processes. This sequence is designed to force the shm_nattch counter to wrap. Following this, the exploit carefully shapes the kernel heap memory and monitors allocator data through sysctl(KERN_MALLOCSTATS).

The exploit then orchestrates a race condition: one process marks a shared memory object for removal using IPC_RMID, while a helper process attempts to attach a new segment at a precise moment. Successfully winning this race results in a size-confused kernel allocation.

To further the exploit, the researchers strategically place IP socket objects adjacent to the newly freed memory. They then utilize IP_MULTICAST_TTL to forge a persistent struct ip_moptions object. The out-of-bounds write capability is then used to modify two membership counters within this structure.

By closing the socket, atomic counter changes are triggered, which in turn alter OpenBSD’s self-referencing page-table mapping. This crucial step makes the user-space mapping accessible to supervisor mode, enabling the exploit to overwrite a predictable kernel pointer. The exploit then executes code within the kernel, meticulously repairs the altered pointer, and finally opens a root shell.

Remarkably, the exploit chain proved effective even with OpenBSD’s robust security features enabled, including Kernel Address Randomization (KARL), Supervisor Mode Access Prevention (SMAP), and Supervisor Mode Execution Prevention (SMEP). It did not necessitate a separate information leak. While KARL randomizes kernel code and data addresses at boot, Calif discovered that certain parts of the kernel memory allocator remain predictable on the same hardware. This predictability allowed early boot objects to reside at stable memory locations, enabling the exploit to target specific lo0 and enc0 ioctl handler pointers.

Patches and Mitigation

OpenBSD has released patches addressing both vulnerabilities. The integer overflow is fixed in Errata 018, and the reference-counting use-after-free issue is resolved in Errata 026. Both fixes are listed on the OpenBSD 7.9 errata page and are applicable to all architectures. Binary updates are available via syspatch for amd64, i386, and arm64 systems.

Calif’s research also suggests broader protective measures, such as implementing safe unlink checks for linked lists, enhancing the random placement of page-table maps, and improving the unpredictability of kernel allocations. Compiler features like array bounds checks and allocation isolation could also significantly increase the difficulty of exploiting similar memory-related bugs.

The PoC source code for the exploit is publicly accessible as part of Calif’s MAD Bugs security research project.

This incident underscores the enduring presence of long-standing design flaws within critical operating system codebases. It follows recent discoveries of other legacy vulnerabilities in OpenBSD, including a 27-year-old authentication flaw and an earlier NFS double-free vulnerability.

What You Should Do

  • Immediately apply all available OpenBSD patches, specifically Errata 018 and Errata 026, to all affected OpenBSD 7.9 systems.
  • For amd64, i386, and arm64 architectures, use the syspatch utility to apply binary updates.
  • Reboot your systems after applying patches to ensure the corrected kernel becomes active.
  • Regularly monitor OpenBSD’s errata page for new security advisories and promptly apply recommended updates.
  • Review and implement general hardening best practices for OpenBSD systems to minimize the attack surface.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackCVEExploitPatchSecurityVulnerability

Share Article

Marcus Rodriguez

Marcus Rodriguez

Marcus is a security researcher and investigative journalist with expertise in vulnerability research, bug bounties, and cloud security. Since 2017, Marcus has been breaking stories on critical vulnerabilities affecting major platforms. His investigative work has led to the disclosure of numerous security flaws and improved defenses across the industry. Marcus is an active participant in bug bounty programs and has been recognized for responsible disclosure practices. He holds multiple security certifications and regularly speaks at industry events.

Previous Post

New YuanKong Android RAT Hijacks Phones, Steals Banking Credentials

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Chinese Phishing Network Targets Japanese Banks with 17,000 Domains
October 16, 2026
Critical PaperCut CVE-2023-27350 Exploited on 440 Servers
October 16, 2026
Google Automatically Adds Android Phone Numbers to Google Accounts
October 16, 2026
Top Authors
David kimber
David kimber
Marcus Rodriguez
Marcus Rodriguez
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us