← Voltar ao feed

usb2shell: Linux kernel SCSI flaw CVE-2026-98232 lets rogue USB device gain root; Drivesec releases public PoC

3 fonte(s) · 3 atualização(ões) · publicado 01/12/2026 04:29 · coletado há 4 dias

Drivesec published full technical details and a public proof-of-concept on November 30, 2026 for usb2shell (CVE-2026-98232, CVSS 8.4). It is a flaw in the Linux kernel SCSI core. A rogue USB storage device can run commands as root on Linux 6.5 and newer while the kernel probes the device, with no mounting or user interaction. The article reports no confirmed exploitation and says CISA KEV shows no attacks in the wild. This research did not independently verify that, and no vendor or primary source was opened. Exploitation needs physical access or an emulated USB device, which limits remote risk. Kiosks, EV chargers, point-of-sale boxes and HMIs with exposed USB ports are the most exposed.

Entenda a falha

A vulnerabilidade

usb2shell (CVE-2026-98232, CVSS 8.4) is an out-of-bounds write (CWE-787) in the Linux kernel SCSI core, in scsi_cdl_enable(). The attacker needs only physical access to a USB port, or an emulated USB device. No authentication, mounting or user interaction is needed. The device can read up to 64 bytes of kernel stack and overwrite one byte, which Drivesec chained into root command execution. The system must have usb-storage or uas support. Affected: Linux 6.5 and later before 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Android 6.6+ kernels only leak memory. Distribution numbering differs: The Hacker News says Debian 12's standard kernel never had the flawed code, and Red Hat backported the fix into its 5.14 kernel.

Como funciona

When a USB storage device is plugged in, the kernel probes it automatically. If the device claims to be an ATA disk supporting Command Duration Limits (CDL), the SCSI core calls scsi_cdl_enable(). That function copies mode page data from the device into a small stack buffer. The length fields in the MODE SENSE reply come from the device, and a bad length causes an integer underflow, so the read and write go beyond the buffer. This happens before userspace sees a disk, so a locked screen, a logged-out session or disabled automount does not stop it.

Por que é vulnerável

The CDL code added in kernel 6.5 trusted the length values supplied by the USB device and did not check them against the stack buffer size, so an attacker-controlled value underflows. The upstream fix, titled 'scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()', adds validation of those lengths. On Android 6.6+ builds checked by the researchers, a compiler bounds check blocks the write step. The articles do not say why the bug went unnoticed from 6.5 until it was flagged.

Onde está

The function scsi_cdl_enable() in the Linux SCSI core. The story cites upstream fix commit 3d676e458fe0 for backporting; the earlier explanation also listed the introducing commit 1b22cfb14142aba7742d307c4f8d7006f919308c.

Como foi descoberta

According to The Hacker News, the bug was first flagged by Sashiko, an AI code-review system Google built for the Linux kernel and gave to the Linux Foundation, which reported it on the kernel mailing list. Drivesec says it found the same flaw independently, wrote the fix and built the exploit; the AI did not write the exploit. The fix landed in the kernel in September, the CVE was published in October, and Drivesec released full details on November 30, 2026. No in-the-wild attacks have been found, and it is not in CISA KEV as of publication.

PoC pública

Drivesec published a working PoC write-up and a check script (usb2shell-check.sh). In the lab, a Cynthion USB board against a Debian machine on kernel 6.12.22 with KASLR enabled used the stack leak to defeat KASLR, then turned the one-byte write into arbitrary kernel writes and fake kernel structures, running a device-chosen command as root. The exploit is probabilistic, but failed attempts do not crash the machine, so an attacker can retry; no success rate is published. The check script can miss vendor backports. Public details raise the risk for unpatched kiosks, EV chargers and POS boxes, so patch quickly.

Publicada em: securityonline.info/cve-2026-98232-usb2shell-linux-vulnerability/ ↗

Explicação gerada por IA a partir da matéria e dos artigos, em 01/12/2026 07:15.

Detalhes técnicos

  • The bug is CWE-787 in scsi_cdl_enable(). It was added in kernel 6.5 for Command Duration Limits (CDL).
  • The function trusts MODE SENSE length fields from the device. A bad length causes an integer underflow.
  • The device can read up to 64 bytes of kernel stack and overwrite one stack byte.
  • This happens before userspace sees a disk, so disabling automount does not help.
  • In Drivesec's lab, the leak defeated KASLR. Fake kernel structures then turned the one-byte write into execution of a device-supplied command as root. The lab used a Cynthion USB board against a stock Debian 6.12 kernel.
  • On Android kernels 6.6 and newer, compiler bounds checks block the write, so only the leak remains.
  • Affected: Linux 6.5 and later before 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3.

Remediação

  • Upgrade to a patched vendor kernel, or backport upstream commit 3d676e458fe0, then reboot.
  • Fixed builds named in the article: RHEL 9 and 10 (RHSA-2026:102090, RHSA-2026:102168, RHSA-2026:102710), Debian 12/13 (6.12.113-1), Amazon Linux 2023 (ALAS2023-2026-3335, ALAS2023-2026-3192) and AlmaLinux 9.
  • Drivesec's usb2shell-check.sh can test hosts, but vendor backports may keep older version numbers.
  • Where drives are not needed, stop the usb-storage and uas modules from loading.
  • Enable USB allow-listing with USBGuard or authorized_default=0.

Linha do tempo

  1. gbhackers.com ↗ · pub. 01/12/2026 08:45 · coletado 01/12 11:00

    usb2shell: Linux kernel SCSI flaw CVE-2026-98232 lets a malicious USB device run commands as root

    This article adds the attack prerequisites (Linux 6.5+ with usb-storage or uas and a reachable USB port), the probabilistic exploit behaviour, the list of realistic embedded targets, and the disclosure timeline from 26 August to 30 November 2026.

    ler a análise desta fonte

    This article adds the attack prerequisites (Linux 6.5+ with usb-storage or uas and a reachable USB port), the probabilistic exploit behaviour, the list of realistic embedded targets, and the disclosure timeline from 26 August to 30 November 2026.

    Drivesec disclosed usb2shell (CVE-2026-98232), a stack out-of-bounds bug in scsi_cdl_enable() in the Linux kernel SCSI core. A crafted USB device that claims to be an ATA device with Command Duration Limits support can leak up to 64 bytes of kernel stack and clear one stack byte. Drivesec chained this into root command execution on a stock Debian 6.12.22+bpo-amd64 kernel with KASLR enabled, using a Cynthion USB device. The attack needs brief physical access to a USB port, but no login, mount or user click. The article reports no exploitation in the wild. This research did not open any primary source.

    Technical Details

    • The bug affects Linux 6.5 and later, where CDL support was added. The system must also have usb-storage or uas, built in or auto-loaded.
    • The kernel uses device-supplied lengths without validation. A calculated length can wrap to 64, and the buffer pointer can land past the end of the 64-byte stack buffer.
    • The leak defeats KASLR. Fake kernel structures turn the one-byte write into a controlled write, and the kernel runs a device-supplied command as root when the device is unplugged.
    • The exploit is probabilistic, but failed attempts do not crash the system.
    • Android kernels 6.6 and later are affected only by the leak, because compiler bounds checks keep the write inside the buffer.
    • Drivesec names car infotainment units, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment, industrial HMIs and smart-home hubs as realistic targets.
    • Timeline: found on 26 August 2026, reported privately on 2 September, patch sent on 4 September, fix committed on 9 September, CVE published on 6 October, write-up on 30 November.

    Remediation

    • Update to a fixed kernel or backport upstream commit 3d676e458fe0 ("scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()").
    • Vendors often backport fixes without changing the version number. Compare flagged systems against the vendor advisory.
    • Drivesec offers the usb2shell-check.sh checker, which should be read before it is run.
    • Where patching is delayed, stop building or auto-loading usb-storage and uas on systems that do not need mass storage.
    • Use USB allow-listing such as USBGuard or authorized_default=0.
  2. thehackernews.com ↗ · pub. 01/12/2026 04:38 · coletado 01/12 07:00

    USB2Shell: Linux kernel SCSI flaw CVE-2026-98232 lets a malicious USB device run commands as root before login

    This article adds that the researchers tested only one machine and that the exploit is probabilistic but does not crash on failure. It also adds that the bug was first flagged by Google's Sashiko AI reviewer. It says Debian 12's standard kernel never had the flawed code, that Red Hat backported the fix, and that the fix has existed since September. It also gives the October CVE publication date and says no KEV listing exists.

    ler a análise desta fonte

    This article adds that the researchers tested only one machine and that the exploit is probabilistic but does not crash on failure. It also adds that the bug was first flagged by Google's Sashiko AI reviewer. It says Debian 12's standard kernel never had the flawed code, that Red Hat backported the fix, and that the fix has existed since September. It also gives the October CVE publication date and says no KEV listing exists.

    Drivesec researchers showed the USB2Shell attack on 2026-11-30. It targets CVE-2026-98232 in the Linux kernel SCSI core. A crafted USB device that claims to be an ATA disk with Command Duration Limits can trigger a stack buffer flaw during the automatic scan on plug-in. This needs no login, mounting or user interaction. The flaw was fixed in September and published as a CVE in October, so only unpatched machines are exposed. The researchers ran the attack on one test machine and say it did not always work. The article reports no attacks in the wild, no victims and no CISA KEV listing. The article's sources were not independently verified, and no vendor advisory was opened.

    Technical Details

    • The bug is in the function that enables Command Duration Limits. It copies device-supplied data into a small stack buffer using device-provided lengths without checking them.
    • A malicious device can read up to 64 bytes of kernel stack and change one byte, according to the kernel advisory.
    • The flaw was introduced in Linux 6.5. Exposure requires the usb-storage or uas driver and a reachable USB port.
    • On a Debian machine running kernel 6.12.22 with KASLR on, using a Cynthion USB tool, the researchers turned the one-byte write into an arbitrary kernel write. They defeated KASLR and ran a device-chosen command as root when the device was unplugged.
    • The exploit is probabilistic, but a failed attempt does not crash the machine.
    • On Android (kernels 6.6 and newer), only a memory leak was found. A compiler check blocks the write step on the builds tested.
    • Debian 12's standard kernel never contained the flawed code, according to its security tracker. Red Hat shipped the fix in a kernel numbered 5.14, so upstream version numbers do not map directly to distribution kernels.
    • The bug was first reported by Sashiko, a Google-built AI code-review system for the kernel. Drivesec says it independently found the flaw, wrote the fix and built the exploit.

    Remediation

    • Update to a kernel that includes the fix, or backport the upstream fix commit.
    • If an update is not possible, stop the usb-storage and uas drivers from loading on machines that do not need them.
    • Require device approval with USBGuard or authorized_default=0.
    • The researchers' check script can miss vendor backports, so treat its result as a hint.
    • Prioritize kiosks, payment terminals, car infotainment units, EV chargers and smart-home hubs, where strangers can reach a USB port. None has been shown compromised.
  3. securityonline.info ↗ · pub. 01/12/2026 04:29 · coletado 01/12 05:00 primeiro registro

    usb2shell: Linux kernel SCSI flaw CVE-2026-98232 lets rogue USB device gain root; Drivesec releases public PoC

    ler a análise desta fonte

    Drivesec published full technical details and a public proof-of-concept on November 30, 2026 for usb2shell (CVE-2026-98232, CVSS 8.4). It is a flaw in the Linux kernel SCSI core. A rogue USB storage device can run commands as root on Linux 6.5 and newer while the kernel probes the device, with no mounting or user interaction. The article reports no confirmed exploitation and says CISA KEV shows no attacks in the wild. This research did not independently verify that, and no vendor or primary source was opened. Exploitation needs physical access or an emulated USB device, which limits remote risk. Kiosks, EV chargers, point-of-sale boxes and HMIs with exposed USB ports are the most exposed.

    Technical Details

    • The bug is CWE-787 in scsi_cdl_enable(). It was added in kernel 6.5 for Command Duration Limits (CDL).
    • The function trusts MODE SENSE length fields from the device. A bad length causes an integer underflow.
    • The device can read up to 64 bytes of kernel stack and overwrite one stack byte.
    • This happens before userspace sees a disk, so disabling automount does not help.
    • In Drivesec's lab, the leak defeated KASLR. Fake kernel structures then turned the one-byte write into execution of a device-supplied command as root. The lab used a Cynthion USB board against a stock Debian 6.12 kernel.
    • On Android kernels 6.6 and newer, compiler bounds checks block the write, so only the leak remains.
    • Affected: Linux 6.5 and later before 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3.

    Remediation

    • Upgrade to a patched vendor kernel, or backport upstream commit 3d676e458fe0, then reboot.
    • Fixed builds named in the article: RHEL 9 and 10 (RHSA-2026:102090, RHSA-2026:102168, RHSA-2026:102710), Debian 12/13 (6.12.113-1), Amazon Linux 2023 (ALAS2023-2026-3335, ALAS2023-2026-3192) and AlmaLinux 9.
    • Drivesec's usb2shell-check.sh can test hosts, but vendor backports may keep older version numbers.
    • Where drives are not needed, stop the usb-storage and uas modules from loading.
    • Enable USB allow-listing with USBGuard or authorized_default=0.