October 15, 2026

Wanted to Download an ISO, Ended Up Writing a Kernel Exploit

Here is a story that sounds like fiction but is not. A developer bought a TP-Link EAP770 Wi-Fi 7 access point in August 2023. It corrupted downloads. Large file transfers over Wi-Fi would die with TLS errors and SSH MAC failures. The fix turned out to be two bytes in a sysfs file that the device's own shell would not let them write. So they wrote a kernel exploit for their own access point.[1]

The corruption was subtle. TCP checksums were valid on damaged segments, meaning something had recalculated them after the bytes were already wrong. Only the LAN-to-Wi-Fi direction was affected. Wired clients were clean. The wireless MAC layer was intact. The culprit was inside the access point itself, in the bridge between Ethernet and Wi-Fi.

64 bytes of corruption at a time, always aligned to a cache line. The IPQ9574 SoC has 64-byte cache lines. DMA writes directly to DRAM without keeping CPU caches in sync, and Qualcomm's out-of-tree NSS driver reuses packet buffers without properly invalidating the full receive region. A dirty cache line from a previous transmit gets written back after the NIC has already placed a new packet in the same buffer. The hardware offload engine then recalculates checksums over the corrupted payload, producing a valid TCP checksum for garbage data. TCP accepts it. TLS catches it. The user sees "bad record mac" and wonders what is wrong with their network.[2]

The fix is simple: disable the SFE/PPE offload by writing two zeros to sysfs. The problem is that TP-Link's SSH shell runs as uid 1 with no capabilities. No root, no write access to sysfs, no GUI toggle for this setting.

Oh, and TP-Link had already end-of-lifed the device before the author even unboxed it. No firmware updates. No v1 firmware image to patch. The v2 firmware is for different hardware. Support confirmed: "The EAP770 Version 1 is an End-of-Life product. While it may still be available through some retailers, it is no longer supported with firmware updates."[1]

So the author spent seventeen hours with Opus 4.8 building a privilege escalation chain using CVE-2022-0185, an integer underflow in the Linux kernel's legacy_parse_param function reachable from an unprivileged user namespace. The overflow becomes an arbitrary write through pipe-buffer manipulation. From there: leak kernel addresses, forge pipe buffer operations to scan kernel memory without triggering page faults, find modprobe_path, overwrite it, and trigger a request_module call that runs the replacement path as root.

The exploit had one shot per boot. The slab overflow leaves the 4 KiB slab in a state where a second attempt panics. The AP had to stay running because the broken offload comes back after a reboot. No KASLR, but kallsyms was zeroed, so kernel addresses had to be found at runtime through the leak primitive. The QEMU harness used for testing loaded the kernel at a different physical address than the real device, throwing off the initial calculations by 0x2000000.

It worked. The AP stayed up. Disabling the offload stopped the corruption. The author now has root on their own access point and can write the two zeros that fix the DMA cache coherency bug that should have been fixed by a firmware update that will never come.

There are a few things worth noting here. The bug is in Qualcomm's out-of-tree NSS driver code, available in the openwrt/qca-nss-dp mirror. Similar DMA cache maintenance problems exist in several other drivers. The author does not know who to report them to.[2] TP-Link's system is otherwise well hardened: whitelists everywhere, minimal modules loaded, no free command injection in their own binaries. The way in had to be the kernel.

Also worth noting: when the author switched from diagnosing the corruption to applying the fix, Opus 5.5 started cutting sessions off roughly every other message. Mentioning "local privilege escalation" was enough to trigger it. The Cyber Verification Program on the account did not help. Opus 4.8 worked through the exploitation without that problem.[1]

This is what right-to-repair looks like when the manufacturer has already walked away. The device is sitting in your house. You know which setting to change. Their software will not let you. The only path left is the kernel.

← All posts