>>FIRST MISSION//LOGS//cybersecurity//the-cve-said-information-disclosure-the-exploit-said-root.MD
[ + ] TARGET_LOCKED200 OK
DEC 01, 2026timer 3 MIN READSYS_TAG: cybersecurity STATUS: VERIFIED_WORKING

The CVE Said Information Disclosure. The Exploit Said Root.

CVE-2026-98232 is a 64-byte stack leak and a two-bit write in the Linux SCSI core, reached while the kernel scans a USB storage device. Drivesec turned it into root on a stock Debian kernel, and the CVE record still carries no score.

ENGINE: KERNEL // STABLE
BASE_ARCH: x86_64
HOST: VASTORIGINS.COM
GPG: OKSIG_ID: 0x4EB27DB0

I keep a short list of things I do not trust on a machine, and USB is on it for the usual reasons: devices that lie about being keyboards, firmware that rewrites itself, sticks that show up in parking lots. What was not on the list is the kernel’s own scan of a storage device, the part that runs before anything gets mounted and before any process gets a say.

That is where CVE-2026-98232 lives. Drivesec published it on November 30 as usb2shell, and the demo runs on a Cynthion board plugged into a machine with a stock Debian 6.12.22+bpo-amd64 kernel, KASLR on. Nothing is mounted. Nobody logs in. Nobody clicks anything. When the device is unplugged, the kernel runs a command the device supplied, as root.

The primitives sound small: the device can read up to 64 bytes of kernel stack, and it can clear the low two bits of one stack byte at an offset it chooses. Small is not the same as harmless. A leak tells you where the kernel is, and a write of two bits, at an address you picked, is often enough to turn a read-only primitive into a controlled one. Drivesec says it used the leak to defeat KASLR and built fake kernel structures to get a controlled write out of the single byte. Their exploit is probabilistic, and failed attempts do not crash the machine, which is the kind of detail that matters if you ever have to tell an intrusion from a hardware fault.

🧩 What the Device Actually Controls

Command Duration Limits support entered the SCSI core in Linux 6.5, which is the commit the fix points at: 1b22cfb14142, “scsi: core: Allow enabling and disabling command duration limits”. The function that matters is scsi_cdl_enable(), and it holds a 64-byte stack buffer while it talks to the device.

It sends a MODE SENSE and gets back a header, a set of block descriptors, and a total length. Those three numbers come from the device. The function then computes where the ATA feature page sits and how much of it to send back, like this:

len = min_t(size_t, sizeof(buf),
            data.length - data.header_length -
            data.block_descriptor_length);   /* can wrap to 64 */
buf_data = buf + data.header_length +
        data.block_descriptor_length;        /* can point past buf */

If the device reports a total length smaller than the header and descriptor lengths it also reported, the unsigned subtraction wraps, and min_t hands back the full 64 bytes. The pointer is calculated separately, from the same unvalidated fields, so it can land past the end of the buffer.

During the automatic scan, enable is false, so the code takes this path:

buf_data[4] &= ~0x03;

That is a read-modify-write on a byte outside the buffer. It clears two bits, and then scsi_mode_select() sends the buffer back to the device, walking from the out-of-bounds pointer and carrying up to 64 bytes of whatever sits behind it. The device gets kernel stack contents. The kernel gets a byte quietly modified at a location the attacker picked.

The fix is the boring version of the same arithmetic: clamp avail to the buffer, reject a header length that does not fit, subtract it, reject a block descriptor length that does not fit, subtract that, and require five bytes before touching the CDL field. Nineteen lines added, five removed, no architectural insight. It just stops trusting the device’s own idea of where its data is.

🤖 The AI Reviewer Got There in July

Here is the part I keep turning over. On July 17, Jay Vadayath posted a patch to linux-scsi that added bounds checks to cache_type_store(), the sibling function with the same unchecked pattern. Sashiko, the kernel’s agentic review bot, replied in the thread with two findings. The second one:

[Severity: Critical] This is a pre-existing issue, but does a structurally identical out-of-bounds vulnerability exist in scsi_cdl_enable() in drivers/scsi/scsi.c?

It then pasted buf_data = buf + data.header_length + data.block_descriptor_length; and buf_data[4] &= ~0x03;, and asked whether a malicious USB device reporting a large block descriptor length could push that past the stack buffer. The bot got the whole shape right, including the trigger.

The commit that closed it, 3d676e458fe0, credits that message: Reported-by: Sashiko AI Review, a Closes: link to the July thread, Assisted-by: LLM, and Co-developed-by: Pimen Flavian Dei of Drivesec. Martin K. Petersen committed it on September 9, five days after Alberto Carboneri sent the patch.

Drivesec’s own timeline says its researchers found the bug independently on August 26, had root command execution on physical hardware by August 28, and reported it privately on September 2. So the report was public in July, the weaponized chain existed in August, the fix landed in September, and the exploit write-up went out on November 30.

That order is the story. The bug was not hidden, it was not a zero-day in the saleable sense, and it was not hard to describe. It sat in a public mailing list archive with the function name in the subject line, flagged Critical by a bot, for four months.

🏷️ Information Disclosure, and the Score That Is Not There

The CVE was reserved on September 25 and published by the Linux CNA on October 6. Read the record and it describes the primitives correctly, including the part most summaries drop: the proof ran a fixed command inside a guest during automatic enumeration and created a UID-0-owned marker, with KASLR and NX enabled.

What the record does not have is a score. I pulled the CNA container and there are no metrics in it. NVD still lists the CVE as “Received” as of this morning, with an empty metrics object, so no independent analysis has been done there either.

The trackers filled the gap in the usual ways. SentinelOne’s database titles it “Linux Kernel SCSI Information Disclosure”. A Feedly listing carries a CVSS 3.1 vector beginning AV:N, network, for a bug that needs a USB cable and a hand. EPSS is 0.17 percent. It is not in KEV: I checked the feed, catalog version 2026.11.30, 1,810 entries, no match.

None of that is dishonest. “Information disclosure” is a fair name for the leak, and a local attacker needing physical access really does lower the score. But the label describes the primitive, not the chain, and the chain is what turns a leak plus two bits into whoami as root. The severity of this bug was never in the record. It was in the fifty lines of kernel code that the record did not include.

There is a second scoping trap worth naming. “Linux 6.5 and later” is upstream shorthand. CDL was backported into older distribution kernels, so the version string on your box does not settle it. Debian’s tracker is the clearest example: bookworm’s stock 6.1 kernel is marked not affected because the code is not there, while the 6.12 kernel it ships from backports was affected and is fixed in 6.12.113-1~deb12u1. Distributions also backport fixes without bumping the upstream version, so check your vendor’s advisory for this CVE rather than comparing numbers.

🩹 What to Do If You Own the Port

Patch first. Drivesec lists fixed releases at 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3, with the upstream commit 3d676e458fe0 available for anyone carrying a vendor kernel. On Debian, DSA-6568-1 fixes trixie at 6.12.113-1, and DLA-4850-1 covers the bookworm 6.12 kernel. Where a blog table and a distribution advisory disagree by a point release, follow the distribution, because that is the package you will actually install.

Two mobile footnotes. Android kernels on 6.6 and later still return stack contents, according to Drivesec, but the builds they checked, Android GKI and the kernel shipping on the Galaxy A16, use compiler bounds checks that keep the write inside the buffer. The leak survives, the root does not, at least on those builds.

If you cannot patch tonight, remove the parser instead of restricting the user. Do not build or auto-load usb-storage and uas on machines that do not need mass storage, and if the port must stay live, allow-list devices with USBGuard or authorized_default=0. What does not help is the advice people usually reach for: blocking mounts, tightening block device permissions, telling staff not to open the disk. The bug fires during enumeration, before any of that exists.

The requirement is brief physical access to a port, which is also the whole threat model. A server in a locked cage is not the worry. Kiosks, EV chargers, point of sale terminals, shop floor HMIs, in-flight entertainment, and any hub with a port a stranger can reach are the ones I would inventory this week.

🧠 Final Thoughts

Drivesec places this in the “2shell” wave, next to PHP2Shell, Java4Shell, wp2shell and KindaRails2Shell, and calls theirs the physical edition. That framing is right, but the more useful pattern is upstream of it. A reviewer with no hands, no hardware and no exploit found the exact function in July, and the severity only became visible when two people built the rest of the chain on a Cynthion.

I am not going to read “information disclosure” as low risk again without asking what leaks, and what the attacker can clear once they know where things are. One byte, two bits, chosen offset. That is all it took, and the record said nothing about it.

Thanks for reading.

[ SIGNATURE VERIFIED // GPG 0x4EB27DB0 // PROVENANCE SECURE ]
➔ RETURN TO LOGS