Exploit database

GH-945bd5267b0d1b94c3f74faf5cda7e5a

blkph0x/cve-2026-83844_poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-83844

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files579
blkph0x/cve-2026-83844_pocRevision 193ed44859da
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lab/trace/test_export_provenance_sdk_c1_heap.py

Python · 1,521 bytes
#!/usr/bin/env python3
"""Fail-closed checks for the address-free C1 heap-envelope exporter."""

from __future__ import annotations

import sys
import unittest
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parent))

from export_provenance_sdk_c1_heap import _allocation_chunk


class HeapEnvelopeTests(unittest.TestCase):
    def test_backend_span_stays_before_reported_end(self) -> None:
        detail = ("Allocation status        : Variable size allocated chunk.\n"
                  "Chunk header address     : 00000000`00001000\n"
                  "Chunk size (bytes)       : 128\n"
                  "Chunk unused bytes       : 8\n")
        sample = _allocation_chunk(detail, 0x1040, 16)
        self.assertEqual(sample["bytes_before_reported_chunk_end"], 40)
        with self.assertRaisesRegex(ValueError, "does not fit"):
            _allocation_chunk(detail, 0x1070, 16)

    def test_lfh_span_uses_requested_size_not_block_size(self) -> None:
        detail = ("Allocation status        : LFH Allocated\n"
                  "Block Address            : 0x0000000000002000\n"
                  "Block Size               : 32 Bytes\n"
                  "User requested size      : 24 Bytes\n")
        sample = _allocation_chunk(detail, 0x2000, 24)
        self.assertEqual(sample["bytes_before_reported_user_end"], 0)
        with self.assertRaisesRegex(ValueError, "does not fit"):
            _allocation_chunk(detail, 0x2000, 25)


if __name__ == "__main__":
    unittest.main()