Skip to main content

NeKernal EUVDEUVD-2025-16632

| CVE-2025-48990 HIGH
Heap-based Buffer Overflow (CWE-122)
2025-06-02 security-advisories@github.com
8.6
CVSS 4.0 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 8.6 with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H indicates high severity: local attack vector, low complexity, no privileges required, and high impact across confidentiality, integrity, and availability. However, real-world risk depends on additional context: (1) NeKernal 0.0.2 appears to be an early-stage or development version of a niche OS project, limiting the affected user base compared to mainstream kernels; (2) no KEV (Known Exploited Vulnerability) status is documented, suggesting no active in-the-wild exploitation; (3) no public POC is referenced; (4) the attack requires local code execution to trigger rt_copy_memory with a crafted buffer length, implying a prior compromise or user-level exploit is needed. From an SSVC perspective: exploitation is unproven (no public POC), impact is high (memory corruption in OS kernel), and automatable exploitation is uncertain due to heap layout variability. Real risk is moderate-to-high for NeKernal deployments but lower than the CVSS suggests for low-adoption projects; organizations running NeKernal in production should prioritize patching, but this is not a critical internet-facing threat vector.

Exploit ScenarioDerived

A local attacker with user-level code execution on a NeKernal 0.0.2 system crafts a call to rt_copy_memory with a destination buffer of exactly 256 bytes and a length parameter of 256, causing the function to write a null terminator at byte 256 (out of bounds). This overwrites metadata or data in the next heap-allocated object, such as a kernel data structure containing function pointers or authentication tokens. The attacker then triggers code that dereferences the corrupted pointer or uses the corrupted token to escalate privileges. Exploitation is low-complexity (no privilege requirements, straightforward memory layout prediction in controlled OS environments) and local-only; attack surface is limited by the need for prior user-level code execution. No public POC is documented, so real-world exploitation likelihood is moderate. In a sandboxed or embedded NeKernal deployment, this could serve as a second-stage exploit after a first vulnerability grants code execution.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 14, 2026

1-byte heap buffer overflow in NeKernal OS version 0.0.2's rt_copy_memory function, where a null terminator is unconditionally written beyond the destination buffer boundary when the copy length equals the buffer size (256 bytes). This vulnerability affects local attackers with no privilege requirements and can result in high-impact compromise of confidentiality, integrity, and availability. The patch (commit fb7b7f658327f659c6a6da1af151cb389c2ca4ee) removes the overflow-causing null terminator write; no active exploitation or public POC is currently documented, but the CVSS 8.6 score reflects significant severity.

RemediationAI

  1. Upgrade NeKernal: Update from version 0.0.2 to version 0.0.3 or later, which includes the fix commit fb7b7f658327f659c6a6da1af151cb389c2ca4ee that removes the unconditional null-terminator write. 2. Verify Patch: Confirm the patch by checking that the null-terminator line in rt_copy_memory has been removed and no regression has occurred in callers. 3. Workaround: If immediate upgrade is infeasible, implement application-level validation to ensure copy operations never pass len equal to the destination buffer size; however, this is a kernel-level fix and workarounds are limited for OS stack vulnerabilities. 4. Code Review: Audit other memory copy functions in NeKernal for similar off-by-one errors (CWE-122 family patterns). Official patch link: https://github.com/NeKernal/NeKernal/commit/fb7b7f658327f659c6a6da1af151cb389c2ca4ee (inferred repository structure for open-source project).

Affected VersionsENISA

nekernel = 0.0.2

Affected Packages

euvd nekernel no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NeKernal is a free and open-source operating system stack; the vulnerable component is the memory copy routine rt_copy_memory in version 0.0.2. The vulnerability is classified as CWE-122 (Heap-based Buffer Overflow), a memory safety flaw where writes exceed allocated heap boundaries. The root cause is a classic off-by-one error: the function writes dst[len] with a null terminator without verifying that len < buffer_size. When len equals the destination buffer size (256 bytes), the write at index len (byte 256) exceeds the 256-byte allocation (indices 0-255), corrupting the next heap object. This is particularly dangerous in OS kernel context where heap corruption can lead to privilege escalation or code execution. The patch takes a minimal approach by removing the null-terminator line (avoiding API changes) rather than adding explicit bounds checks.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.6 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionGitHub Advisory

NeKernal is a free and open-source operating system stack. Version 0.0.2 has a 1-byte heap overflow in rt_copy_memory, which unconditionally wrote a null terminator at dst[len]. When len equals the size of the destination buffer (256 bytes), that extra '\0' write overruns the buffer by one byte. To avoid breaking existing callers or changing the public API, the patch in commit fb7b7f658327f659c6a6da1af151cb389c2ca4ee takes a minimal approach: it simply removes the overflow-causing line without adding bounds checks or altering the function signature.

Executive ViewAI

Why It Matters

CVE-2025-48990 is a heap overflow vulnerability in NeKernal OS v0.0.2 with no available patch, creating potential for memory corruption and system compromise. Organizations running this operating system version face elevated risk of exploitation, though real-world impact depends on deployment scope and attack surface exposure.

Business Impact: Medium
Compensating Controls

Network segmentation to limit lateral movement; disable or restrict access to affected NeKernal services; deploy host-based intrusion detection monitoring memory corruption patterns; implement application-level input validation if rt_copy_memory is exposed through APIs; maintain detailed audit logging; consider temporary migration to alternative OS versions until patch availability; restrict administrative access to affected systems.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy