Skip to content
Memory corruption Advisory Advanced

Linux Kernel USB Core Out-Of-Bounds Read Local Privilege Escalation Vulnerability

The Linux kernel's USB core processing of USB descriptors lacks proper validation of user-supplied data, leading to an out-of-bounds memory read. A physically present attacker could exploit this to escalate privileges and execute arbitrary code in the kernel context.

Lucas Leong Follow

Originally disclosed on Zero Day Initiative

High 7.1 View original

This vulnerability allows physically present attackers to escalate privileges on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability.

Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the kernel failed to validate the length of USB descriptors before reading them, causing an out-of-bounds read.

Impact

A physically present attacker could escalate privileges and execute arbitrary code in the context of the kernel.

What the attacker needed

Physical access to the device; ability to connect a malicious USB device

The fix

The vulnerability was fixed in Linux 6.6-rc1.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a bug in the Linux kernel, the core part of the operating system. When a USB device is plugged in, the kernel reads information called descriptors from it. The kernel did not check the size of this information properly, so it could read past the end of a memory buffer. An attacker with physical access could use a malicious USB device to run code with the highest privileges.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Lucas Leong

View all

93 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.