<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>usb2shell – Linux und Ich</title>
	<atom:link href="https://linuxundich.de/en/tag/usb2shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://linuxundich.de/en</link>
	<description>A German Linux blog, in English</description>
	<lastBuildDate>Tue, 01 Dec 2026 14:17:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>
	<item>
		<title>usb2shell: A Rigged USB Device Gets Root on Linux</title>
		<link>https://linuxundich.de/en/usb2shell-linux-kernel-usb-vulnerability-root/</link>
					<comments>https://linuxundich.de/en/usb2shell-linux-kernel-usb-vulnerability-root/#respond</comments>
		
		<dc:creator><![CDATA[Christoph Langner]]></dc:creator>
		<pubDate>Tue, 01 Dec 2026 14:17:14 +0000</pubDate>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[usb2shell]]></category>
		<guid isPermaLink="false">https://linuxundich.de/en/usb2shell-linux-kernel-usb-vulnerability-root/</guid>

					<description><![CDATA[A rigged USB device can make Linux systems from kernel 6.5 onward run a command as root without anyone clicking anything. Current kernels are fixed, and you can check older ones with a few commands.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Security researchers at the Italian company Drivesec have disclosed a vulnerability in the Linux kernel under the name <a href="https://usb2shell.com/">usb2shell</a>. A rigged USB device is all it takes to run a command with root privileges on an unpatched machine. Nobody has to log in, mount a drive or click anything. Kernels from version 6.5 onward are affected, and the vulnerability is tracked as CVE-2026-98232.</p>



<p class="wp-block-paragraph">The bug sits in the automatic detection of mass storage devices. If a device poses as a hard drive with a certain extra feature, the kernel takes length values from its reply without checking them. That lets the device see parts of kernel memory and overwrite a single byte. Drivesec turned this into an attack that runs a command as root on Debian when the device is unplugged. By the way, the first to report the bug on the kernel mailing list was an AI code review tool.</p>



<p class="wp-block-paragraph">Drivesec is thinking less about desktops than about devices whose USB ports strangers can reach: car infotainment, EV chargers, point-of-sale terminals, kiosks or industrial controls. The bug has been fixed since September, and the first safe kernels are 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Distributions often backport fixes without changing the version number, though. So the version is only a first hint.</p>



<pre class="wp-block-code"><code>$ uname -r
7.3.6-arch1-1</code></pre>



<p class="wp-block-paragraph">If you run <a href="https://linuxundich.de/arch-linux-langweiler/">Arch Linux like I do</a> (in German), you got the fixed kernel a while ago. My notebook with Arch Linux, my home server and a notebook with TUXEDO OS all run kernel 7.3 and are therefore safe. For older kernels, Drivesec offers a short check script. Read it before you run it: it only compares the version number and looks for drivers for USB mass storage.</p>



<pre class="wp-block-code"><code>$ curl -fsSLO https://usb2shell.com/tools/usb2shell-check.sh
$ less usb2shell-check.sh
$ sh usb2shell-check.sh</code></pre>



<p class="wp-block-paragraph">If there&#8217;s no new kernel in sight and a device doesn&#8217;t need USB sticks or drives, you can block the two mass storage drivers for good. The following command does that, but from the next reboot on, your own sticks won&#8217;t work there either. Alternatively, USBGuard only lets in devices you have approved beforehand and blocks everything unknown.</p>



<pre class="wp-block-code"><code>$ printf 'install usb-storage /bin/false\ninstall uas /bin/false\n' | sudo tee /etc/modprobe.d/usb2shell.conf</code></pre>



<p class="wp-block-paragraph">It just goes to show that IT security doesn&#8217;t start with the software. If you build devices for public spaces, you also have to make sure that their inputs and interfaces aren&#8217;t publicly accessible. That&#8217;s easy enough with a kiosk. With car infotainment or a photo printer at the drugstore, where customers are supposed to plug in their sticks in the first place, it gets harder, if not impossible.</p>
<hr><p>☕ <strong>Support Linux und Ich</strong><br>Thanks for reading <a href="https://linuxundich.de/en/">Linux und Ich</a>. If you enjoy the blog and would like to support my work, you will find more information on the <a href="https://linuxundich.de/en/support/">donation page</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://linuxundich.de/en/usb2shell-linux-kernel-usb-vulnerability-root/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
