-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"## What the binary admits about itself\n\nThe PoC repository ships the driver binary alongside the exploit. `strings` on `pstrip64.sys` returns the PDB path the developer compiled against:\n\n```text\nf:\\EnTech\\SmallPs\\PSTRIP64_SYS\\amd64\\PSTRIP64.pdb\n```\n\n`SmallPs` is the codebase. The DbgPrint format string immediately above the PDB path is the trace string for the function whose entry the developer wanted to see in a kernel debugger:\n\n```text\nHW_MapTheMemory Entry it=%d busn=%d busaddr=%x IoSpace=%d len=%d\n```\n\n`HW_` is the prefix used for hardware-access helpers in PowerStrip's source tree. `MapTheMemory` is the name. The format-string parameters are everything a caller of `HalTranslateBusAddress` passes: an interface type (`it`), a bus number (`busn`), a bus address (`busaddr`), an address-space selector (`IoSpace`), and a length. Those are the same fields the driver translates out of the IOCTL `0x80002008` input buffer.\n\nThe Authenticode signature attached to the binary is issued by GlobalSign's ObjectSign CA to `EnTech Taiwan`, with a contact of `support@entechtaiwan.com`, valid `060925131342Z` to `070925131342Z`. A VeriSign Time Stamping Services Signer countersignature is dated `060930093608Z`. Two cross-signing chains through GlobalSign and the Microsoft Code Verification Root anchor the trust. The signing certificate expired on September 25, 2007. The countersignature pinned the signing event to September 30, 2006. The binary is loadable on Windows in 2026.\n\n## The IOCTL handler is the primitive\n\nThe PoC's wrapper around the IOCTL is the entire primitive:\n\n```c\nstruct PSTRIP_MAP_REQUEST {\n DWORD OutputResult;\n DWORD BusNumber;\n DWORD64 PhysicalAddress;\n DWORD AddressSpace;\n DWORD Length;\n};\n\nPVOID MapPhysicalMemory(HANDLE hDevice, DWORD64 physAddr, DWORD len) {\n PSTRIP_MAP_REQUEST req = { 0 };\n req.PhysicalAddress = physAddr;\n req.Length = len;\n DWORD bytesRet;\n if (!DeviceIoControl(hDevice, 0x80002008, &req, sizeof(req),\n &req, sizeof(req), &bytesRet, NULL))\n return nullptr;\n return (req.OutputResult >= 68 && req.OutputResult <= 76)\n ? nullptr : (PVOID)(ULONG_PTR)req.OutputResult;\n}\n```\n\nA caller fills the request structure with a 64-bit physical address and a length. The driver returns a virtual address in the caller's process. The caller dereferences it. Reads and writes on the returned pointer hit the requested physical page.\n\nThe kernel-side handler does what the function name says. It assembles the inputs into a `PHYSICAL_ADDRESS` structure, calls `HalTranslateBusAddress` to convert the bus address into a CPU physical address, opens `\\Device\\PhysicalMemory` via `ZwOpenSection`, and calls `ZwMapViewOfSection` with the caller's process as the section's target. The import table contains exactly those calls and nothing else from the `Zw` family: `ZwOpenSection`, `ZwMapViewOfSection`, `ZwUnmapViewOfSection`, `ZwClose`, plus `ObReferenceObjectByHandle` for the section-object plumbing. There is no `SeAccessCheck`, no `ZwOpenProcessTokenEx`, no `ExGetPreviousMode`. The handler does not look at who is calling.\n\nThe device opens from a standard user context with no elevation. The PoC's `CreateFileA` call is at the top of `main`:\n\n```c\nHANDLE hDevice = CreateFileA(\"\\\\\\\\.\\\\PSTRIP64\", 0xC0000000, 0, NULL, 3, 0, NULL);\n```\n\nThe two facts together are the LPE. The DACL on the symbolic link admits the open from standard users, and the IOCTL handler does not refuse a non-administrator caller. The compose is unrestricted physical memory read/write from any process on the machine.\n\n## The chain is the standard token swap\n\nOnce a user-mode primitive returns mapped physical pages, the rest is bookkeeping. The PoC walks physical RAM in 2 MB chunks looking for the kernel pool tag `Proc` (`0x636F7250`), the four-byte signature on every `_EPROCESS` pool allocation:\n\n```c\nfor (DWORD off = 0; off < STEP; off += 0x10) {\n if (*(UINT32*)(blob + off + 0x4) != 0x636F7250) continue;\n ...\n DWORD pid = *(DWORD*)(ep + 0x440);\n if (pid == tPid && !tTokenAddr)\n tTokenAddr = physAddr + off + offsets[i] + 0x4B8;\n if (pid == sPid && !sTokenVal)\n sTokenVal = *(DWORD64*)(ep + 0x4B8);\n}\n```\n\nTwo targets are needed. The first is the physical address of the calling process's `Token` field at `_EPROCESS+0x4B8` on Windows 10 22H2. The second is the token value stored at the same offset inside `_EPROCESS` for PID 4, the System process. Three lightweight heuristics validate candidate hits before the PID is read: a `PriorityClass` of `0x2`, a clear `ProcessLock`, and a printable first byte of `ImageFileName`. The scan skips the `0xC0000000` to `0x100000000` MMIO reservation on x86 and resumes at the 4 GB boundary to catch pool allocations above the line.\n\nOnce both values are known, the page containing the calling process's `Token` field is mapped one more time, the field is overwritten with the System token, and `CreateProcessA(\"cmd.exe\", ...)` spawns a child. The child inherits the parent's token. The child's effective user is `NT AUTHORITY\\SYSTEM`.\n\nThe chain is the standard token swap any signed kernel driver exposing physical-memory read/write enables. The chain has not changed on Windows since `_EPROCESS.Token` got an offset.\n\n## The function has not changed since 2006\n\nThe DbgPrint format string compiled into the binary is the developer's own trace string, present in the binary because they wanted to see \"HW_MapTheMemory Entry\" land in the kernel debugger when the IOCTL was hit. The string and the function it names are bound to the signing event the countersignature pinned to September 30, 2006.\n\nThere is no advisory page on the EnTech Taiwan website acknowledging CVE-2026-29923 as of this writing. The CVE record names a maximum vulnerable version (`≤ 3.90.736`) and no fixed version. The driver hash the README publishes resolves to the binary that has been distributed with PowerStrip 3.90 installers for over a decade. The signing certificate expired in 2007. The countersignature kept the binary loadable, and the binary is the only one EnTech Taiwan has signed for this driver.\n\n## The pattern, again\n\nThis is the [unpatchable-primitive](/patterns/unpatchable-primitive) shape, second appearance in the OEM-kernel-utility variant after [`LnvMSRIO`](/posts/lenovo-lnvmsrio-cve-2025-8061-driver-name-is-the-spec). The substrate is the same: a kernel driver whose reason for shipping is exposing kernel-only capabilities to user-mode code that wants them. PowerStrip needed `HalTranslateBusAddress` and `ZwMapViewOfSection` because the user-mode utility wanted to poke graphics-card registers directly from a tray icon. The driver does what its name says.\n\nThe differences from `LnvMSRIO` sharpen rather than dilute the pattern. `LnvMSRIO` ships four IOCTLs (read/write MSR, read/write physical memory). `pstrip64.sys` ships one. The one IOCTL subsumes a read/write pair into a single mapping the caller dereferences at leisure, which means the kernel side has fewer entries to gate even if it wanted to. `LnvMSRIO` has Lenovo behind it, shipping a Dispatcher 3.2 with the DACL tightened. `pstrip64.sys` has a CVE assigned in 2026 against a binary whose signing event was in 2006 and whose function name is the spec.\n\nThis is also the [design-debt-driver](/patterns/design-debt-driver) variant where the design is dead software. The driver continues to load because the trust anchor that admitted it in 2006 still admits it in 2026. The only operator response is to add the SHA-256 the README publishes to the local blocklist. Microsoft's Recommended Driver Block List is opt-in on systems without HVCI and lags the WHQL signature pipeline by months. Until then, every Windows system without the blocklist enabled will load this binary when an attacker with one-time administrator drops it as a service. After that, the IOCTL is open to standard users for the lifetime of the host.\n\nEnTech Taiwan can patch the driver. EnTech Taiwan does not appear to be patching the driver. The signed binary outlives a patch that does not exist.\n\nPoC: [mein-0/cve-2026-29923](https://github.com/mein-0/cve-2026-29923)","closing_line":"`HW_MapTheMemory` mapped the memory in 2006. `HW_MapTheMemory` maps the memory in 2026.","hook_md":"`pstrip64.sys` is the kernel driver in EnTech Taiwan's PowerStrip display utility. The DbgPrint format string compiled into the binary names the function behind IOCTL `0x80002008`: `HW_MapTheMemory`. The handler opens `\\Device\\PhysicalMemory`, calls `ZwMapViewOfSection` with the caller's process handle, and returns the mapped virtual address. The function maps the memory. The CVE is for what the function does.","post_id":457,"slug":"pstrip64-cve-2026-29923-hw-mapthememory","title":"CVE-2026-29923: pstrip64.sys's HW_MapTheMemory Maps the Memory","type":"initial","unreadable_sentence":"The CVE is for what the function does."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCawPGtwAKCRDeZjl4jgkQ JoVIAQCR/ACpnZROfSsNYu4bIxWqR0ezd4Zk1c2xwCfl/MY/hAD+P/Ga6c3dqSED MuqroBTDcFw9F6arD2txGrUp12blYgc= =6/x5 -----END PGP SIGNATURE-----