USB2Shell: un pendrive manipulado da root en Linux antes de que nadie inicie sesión
Un fallo del núcleo de Linux, CVE-2026-98232, permite ejecutar comandos como root al conectar un dispositivo USB, sin montar nada ni tocar el teclado. El error lo había señalado meses antes un revisor de código con IA.
A Linux kernel flaw, CVE-2026-98232, lets a malicious USB device run commands as root the moment it is plugged in, with no mount and no click. The bug had first been flagged months earlier by an AI code reviewer.
Conectar un pendrive manipulado a un Linux sin actualizar puede bastar para que un atacante ejecute comandos como root, sin que nadie inicie sesión, monte el disco o haga clic. El fallo, bautizado USB2Shell, está en el núcleo del sistema y fue corregido en septiembre; la investigación se hizo pública el 30 de noviembre.
La vulnerabilidad vive en el núcleo SCSI, en la función que activa una característica de almacenamiento llamada Command Duration Limits. Cuando un dispositivo USB dice ser un disco ATA compatible con esa función, el kernel copia datos del aparato a un pequeño búfer de pila de 64 bytes. Usa las longitudes que el propio dispositivo declara y no las compara con el tamaño del búfer.
Antes de cualquier protección
El problema es el momento: esa lectura ocurre en el escaneo automático que se dispara al enchufar el aparato, mucho antes de que la sesión se inicie. Una pantalla bloqueada, un usuario desconectado o una política que prohíbe montar discos desconocidos no detienen el ataque, porque el dispositivo ya está hablando con código privilegiado del kernel.
Un aparato que miente sobre esas longitudes puede leer hasta 64 bytes de la pila del kernel y modificar un solo byte, según el aviso. En su equipo de prueba, Drivesec convirtió ese byte en una escritura arbitraria en memoria: derrotaron KASLR y lograron que el comando elegido por el dispositivo se ejecutara como root al desenchufarlo.
«Un objetivo puede declarar una longitud total menor que su cabecera de modo y sus descriptores de bloque», describe el registro CVE-2026-98232 sobre el error de validación.
El fallo entró en Linux 6.5 y afecta a todas las versiones posteriores sin parche: 6.6.158, 6.12.112, 6.18.54 y 7.2.8 ya están corregidas, y la 7.3 trae la corrección.
Un exploit probabilístico
La cadena no es infalible: los dos primeros intentos fallan y el tercero ejecuta whoami y uname como root. Los fallos no tumban la máquina, y un ataque real puede no dejar síntomas.
La cronología fue lenta: Drivesec encontró el fallo en agosto, logró root en hardware físico dos días después y envió el parche el 4 de septiembre; el CVE se publicó el 6 de octubre y la investigación, el 30 de noviembre. No se han detectado ataques reales.
Quién lo encontró primero
El detalle más llamativo es quién dio la primera señal: Sashiko, un sistema de revisión de código con IA que Google construyó para el kernel y entregó a la Linux Foundation, lo reportó en la lista linux-scsi en julio. Drivesec encontró el mismo error por su cuenta y escribió el exploit; la IA no escribió el ataque.
La recomendación es directa: actualizar el kernel o aplicar el commit upstream. Si no, bloquear los controladores usb-storage y uas en las máquinas que no leen discos USB y exigir aprobación de dispositivos con USBGuard o authorized_default=0. El script de comprobación puede pasar por alto parches retroportados: es una pista, no una prueba.
Fuentes: The Hacker News, CVE-2026-98232, NVD, Red Hat.
Plugging a rigged flash drive into an unpatched Linux machine can be enough for an attacker to run commands as root, with nobody logged in, no drive mounted and no click. The flaw, dubbed USB2Shell, sits in the kernel and was fixed in September; the research became public on November 30.
The vulnerability is in the SCSI core, in the function that enables a storage feature called Command Duration Limits. When a USB device claims to be an ATA disk that supports the feature, the kernel copies data from the device into a small 64-byte stack buffer. It uses the lengths the device itself reports and never checks them against the buffer size.
Before any protection applies
Timing is the problem: that read happens during the automatic scan triggered the instant the device is attached, long before a session starts. A locked screen, a logged-out user or a policy against mounting unknown drives does not stop it, because the device is already talking to privileged kernel code.
A device that lies about those lengths can read up to 64 bytes of kernel stack memory and change a single byte, according to the kernel advisory. On their test machine, Drivesec turned that byte into an arbitrary write: they defeated KASLR and made the device's command run as root when it was unplugged.
«A target can report a total length shorter than its mode header and block descriptors,» the CVE-2026-98232 record says of the missing validation.
The bug arrived in Linux 6.5 and affects every later release without the patch: 6.6.158, 6.12.112, 6.18.54 and 7.2.8 are fixed, and 7.3 ships the fix.
A probabilistic exploit
The chain is not reliable: the first two attempts miss and the third runs whoami and uname as root. Failures do not crash the machine, an awkward detail for defenders: a real attack may leave no symptom.
The timeline was slow: Drivesec found the bug on August 26, got root on physical hardware two days later and sent the patch on September 4. The CVE was published on October 6 and the full research on November 30. No real-world attacks have been found.
Who spotted it first
The most striking detail is who raised the first flag: not a person, but Sashiko, an AI code-review system Google built for the Linux kernel and handed to the Linux Foundation. It reported the bug on the linux-scsi list in July. Drivesec says it found the flaw on its own and wrote the exploit; the AI did not write the attack.
The advice is plain: update the kernel or backport the upstream commit. If that is not possible right away, stop the usb-storage and uas drivers on machines that do not read USB drives and require device approval with USBGuard or authorized_default=0. Their check script can miss vendor backports: treat it as a hint, not proof.
Fuentes: The Hacker News, CVE-2026-98232, NVD, Red Hat.
Sigue leyendo
Keep reading
Canadá confirma la brecha en NEXCOL, su sistema de permisos de exportación militar, y apunta a herramientas de IA
El ministerio de Asuntos Exteriores canadiense mantuvo fuera de línea su plataforma de permisos de exportación de armas y bienes estratégicos tras detectar actividad no autorizada. Ottawa sospecha que los atacantes usaron herramientas de inteligencia artificial.
Canada admits NEXCOL breach, the system that issues military export permits, and blames AI tools
The foreign ministry kept its platform for arms and strategic goods permits offline after detecting unauthorised activity on federal networks. Ottawa suspects the intruders used artificial intelligence tools.
WhatsApp obliga a actualizar iOS: el malware ya se instala con solo abrir una web
Meta pide a los usuarios de iPhone que pasen a la última versión del sistema: dos kits de exploits que se reparten por publicidad infectan teléfonos antiguos sin descargar nada. Quien no actualice quedará fuera de la aplicación en las próximas semanas.
WhatsApp will force iOS updates as drive-by malware spreads through websites
Meta is telling iPhone owners to move to the latest iOS release: two exploit kits distributed through infected ads compromise older phones without any download. Users who refuse will be locked out of the app within weeks.
Protopterus: el malware que se hace pasar por ONG de derechos humanos para espiar a familias de presos en Azerbaiyán
Access Now, Citizen Lab y Qurium documentan una campaña de spear-phishing con un troyano propio de Windows contra dos esposas de disidentes presos y el centro de análisis KharCenter. El rastro se remonta a 2023.
Protopterus: the malware posing as human rights groups to spy on prisoners' families in Azerbaijan
Access Now, the Citizen Lab and Qurium document a spear-phishing campaign delivering custom Windows malware to two spouses of jailed dissidents and the KharCenter think tank. The trail goes back to 2023.


