SAASMENT

News

A crafted USB device can get root on an unpatched Linux machine before anyone logs in (CVE-2026-98232).

Drivesec showed that a crafted USB storage device can make an unpatched Linux kernel run a chosen command as root during the scan that starts the moment the device is plugged in, before anyone logs in, mounts a drive, or clicks.

Illustration of a charcoal USB plug with a lime face, a charcoal document, an open charcoal padlock with a lime shackle and a pink square, and a lime disc with a pink diamond

Impact

What was impacted
CVE-2026-98232, called USB2Shell, in the Linux kernel SCSI core. When a USB device claims to be an ATA disk that supports Command Duration Limits, the kernel copies device-supplied data into a small stack buffer and trusts the length values the device sends. A device that lies about those lengths can read up to 64 bytes of kernel stack memory and change one byte of it. The flaw was introduced in Linux 6.5 and stays in later releases until the fix is applied. A machine is exposed only when USB mass storage is available through the usb-storage or uas driver and a USB port is physically reachable. The fix went into the kernel in September, and the flaw was published as CVE-2026-98232 in October. This report does not name the fixed upstream version or the commit.
Who was impacted
Operators of Linux machines from 6.5 onward that have not taken the fix, with USB mass storage enabled and a port someone can reach. The researchers name kiosks, payment terminals, car infotainment units, EV chargers, and smart-home hubs as places where a stranger can reach a port. None of those products has been shown compromised. Debian's standard version 12 kernel never contained the flawed code. Red Hat shipped the fix in a kernel it numbers 5.14, so the upstream version number is not a reliable test. On Android, the same researchers found a memory leak rather than root: phone kernels on 6.6 and newer hand the device some kernel memory, but the Google generic Android kernel and a Samsung Galaxy A16 kernel they checked use a compiler check that blocks the one-byte change.
What you need to do
Install a kernel that includes the fix, or backport the upstream fix. This report does not name the commit or the fixed build, so take both from your distribution's advisory. If you cannot update yet, stop usb-storage and uas from loading on machines that do not need USB storage, and require approval before the kernel loads a USB driver, using USBGuard or the authorized_default=0 setting. A checker script from the researchers can miss a backported fix, so treat its result as a hint. No real-world attacks and no victims have been identified, and the flaw was not on CISA's Known Exploited Vulnerabilities catalog when this report was published.

In findings reported on December 1, 2026, Drivesec showed that a crafted USB device can make an unpatched Linux machine run an attacker's command as root without a login, a mount, or a click. The flaw, called USB2Shell and tracked as CVE-2026-98232, sits in the kernel path that scans a USB storage device the moment it is plugged in, before anyone signs in. The fix went into the kernel in September and the CVE was published in October, so this report describes machines that have not taken that update. The researchers ran the attack on one test machine, where it did not always work, and they have not found real-world attacks. Sashiko, an AI code-review system Google built for the Linux kernel and gave to the Linux Foundation, flagged the bug on the kernel mailing list. Drivesec says it found the same flaw on its own, wrote the fix, and built the working exploit. The AI system did not write the exploit. Google says Sashiko has been credited in 528 Linux kernel CVE fixes this year, and that it is too early to make strong claims about how much credit the tool deserves.

The bug is in the kernel's SCSI core, in the function that turns on a storage feature called Command Duration Limits. When a USB device claims to be an ATA disk that supports the feature, the kernel copies information from the device into a small buffer on its stack and uses the length values the device itself provides. It does not check those lengths against the buffer size. A device that lies about them can read up to 64 bytes of kernel stack memory and change a single byte, according to the kernel advisory cited in the report. A locked screen, a logged-out session, or a rule against mounting unknown drives does not stop that scan. The device is already talking to privileged kernel code.

On their test machine the researchers turned that one-byte change into a write to any location in kernel memory, defeated KASLR, and made the device's chosen command run as root when the device was unplugged. They used a Debian machine running kernel 6.12.22 with KASLR on, and a Cynthion programmable USB tool. There is no published success rate. They say the exploit is probabilistic and that a failed attempt does not crash the machine, so another try is possible. The report does not give a rate for how often the attempt succeeds.

The flawed code was introduced in Linux 6.5 and is present in every later release until the fix is applied. Exposure also requires USB mass storage, through the usb-storage or uas driver, and a USB port someone can reach. Distribution numbers do not follow that upstream range. Debian's security tracker says its standard version 12 kernel never contained the flawed code. Red Hat delivered the fix in a kernel it numbers 5.14. Check the distribution advisory rather than the upstream version alone.

Where an update has to wait, the report says to stop usb-storage and uas from loading on machines that do not need to read USB storage, and to require approval before the kernel loads a USB driver, using USBGuard or authorized_default=0. The researchers' check script can miss a fix a vendor has backported. On Android they found only a memory leak, not root. Phone kernels on 6.6 and newer give the device some kernel memory, but the Google generic Android kernel and the Samsung Galaxy A16 kernel they checked block the memory-changing step with a compiler check. No attacks using the flaw have been found, no victims are named, and it was not on the Known Exploited Vulnerabilities catalog at publication. The practical concern they point to is a USB port a stranger can reach. The kiosks, payment terminals, car infotainment units, EV chargers, and smart-home hubs they list are examples, not products shown to be compromised.

For your AI agent

Agent instructions — copy paste to Claude

You are helping me respond to CVE-2026-98232, called USB2Shell, a Linux kernel flaw reported on December 1, 2026. A crafted USB storage device can change one byte of kernel stack memory during the automatic scan that runs when the device is plugged in, before login. On one test machine, researchers turned that into a root command when the device was unplugged. Do not build a malicious USB device. Do not craft USB descriptors. Do not write or run an exploit. Do not try to defeat KASLR. Ask before you upgrade a kernel, unload a driver, change a USB policy, or take a host offline.

Facts from the report:
- CVE-2026-98232 is in the Linux kernel SCSI core, in the function that turns on Command Duration Limits. When a USB device claims to be an ATA disk that supports the feature, the kernel copies device-supplied data into a small stack buffer using length values the device provides, without checking them against the buffer size. A lying device can read up to 64 bytes of kernel stack memory and change one byte of it. Do not invent a CVSS score. The report does not give one.
- The scan runs the moment the device is connected. A locked screen, a logged-out session, or a ban on mounting unknown drives does not stop it.
- The flaw was introduced in Linux 6.5 and remains in later releases until the fix is applied. A system is exposed only if it has USB mass storage through the usb-storage or uas driver and a USB port someone can reach. The fix went into the kernel in September and the CVE was published in October. The report does not name the fixed version or the commit. Do not invent either.
- Distribution version numbers do not match the upstream range. Debian's standard version 12 kernel never contained the flawed code. Red Hat delivered the fix in a kernel it numbers 5.14. Do not mark a host vulnerable, or safe, from the upstream number alone.
- Drivesec ran the attack on one Debian test machine with kernel 6.12.22, KASLR on, using a Cynthion. It did not always work. They say a failed attempt does not crash the machine. There is no published success rate. No real-world attacks and no victims have been identified. The flaw was not on CISA's Known Exploited Vulnerabilities catalog at publication. Do not treat the test as evidence that our machines were attacked.
- If we cannot update yet, the report says to stop usb-storage and uas from loading on machines that do not need USB storage, and to require device approval before the kernel loads a driver, using USBGuard or authorized_default=0. A checker script from the researchers can miss a backported fix. Treat it as a hint, not proof.
- On Android the researchers found a memory leak, not root. Phone kernels on 6.6 and newer hand the device some kernel memory. The Google generic Android kernel and a Samsung Galaxy A16 kernel they checked block the one-byte change with a compiler check. Do not assume every Android build has that check.
- Sashiko, an AI review system Google built for the kernel and gave to the Linux Foundation, reported the bug on the kernel mailing list. Drivesec says it found the flaw independently, wrote the fix, and built the exploit. The AI system did not write the exploit. Google says Sashiko has been credited in 528 Linux kernel CVE fixes this year and that it is too early to make strong claims about the tool's credit. Do not treat that tally as a count of exploited bugs.
- Kiosks, payment terminals, car infotainment, EV chargers, and smart-home hubs are examples of equipment where a stranger might reach a USB port. The report says none has been shown compromised.

Context:
- What was impacted: the Linux kernel USB storage scan, CVE-2026-98232, on unpatched machines with a reachable USB port and usb-storage or uas.
- Who should care: operators of those Linux machines, especially where someone else can plug in a device. Android is a memory-leak question on the builds the researchers checked, not a confirmed root bug.
- What to do: install the distribution kernel that contains the fix, without guessing the version. If that has to wait, stop unused USB storage drivers and turn on USB allow-listing.

Do this in order. Prefer read-only checks first. Ask before you upgrade a kernel, change modprobe or USB policy, or isolate a host.

1. Inventory
   - List Linux hosts, the distribution, and the running kernel version. Read only. Do not decide exposure from "6.5 or newer" alone. If the host is Debian's standard version 12 kernel, record that this report says that kernel never contained the flawed code. If the host is Red Hat and the kernel is numbered 5.14, record that Red Hat shipped the fix in a 5.14 kernel and that we still need the distribution advisory to know whether this build has it.
   - Record whether usb-storage or uas is loaded, and whether a USB port is physically reachable by someone who should not plug in a device. Read only.
   - If we have Android devices on kernel 6.6 or newer, record the build. Do not claim they are safe unless the build is the Google generic kernel or the Samsung Galaxy A16 kernel this report checked, and even then record only that those two builds blocked the one-byte change.
   - If I have not given you access to this inventory, say what you need and stop.
2. Contain
   - If a reachable host cannot be shown to include the fix, propose stopping usb-storage and uas only where USB storage is not needed, or turning on USBGuard or authorized_default=0. Ask before you change that.
   - Do not unplug production peripherals, and do not disable USB entirely, unless I agree.
3. Remediate
   - After I agree, install only the kernel package our distribution names for CVE-2026-98232. Stop if the package notes do not say they fix that CVE. Do not invent a version or a commit.
   - Do not compile a proof-of-concept USB device. Do not run an exploit. Do not treat the researchers' checker script as proof the backport is missing or present.
4. Verify
   - Report the kernel now installed, whether the distribution advisory says it includes the fix, and whether usb-storage, uas, or a USB allow-list changed. If I did not agree to a change, report the inventory only.
5. Report back
   - Which hosts still need a vendor-confirmed fix, which ports are physically reachable, and that this report names no attacks in the wild, no victims, no CVSS score, and no upstream version number for the fix.

Do not invent version numbers, commit ids, victim counts, or exploit steps. If a check needs access I have not given you, say what you need and stop.

← All news

Try the platform.

Open the demo workspace with mock data. No login. Register from the banner when you want early access. No security team. No call.

Try the platform