Input: pegasus-notetaker - fix potential out-of-bounds access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1afca2b66aac7ac262d3511c68725e9e7053b40f · < 9ab67eff6d654e34ba6da07c64761aa87c2a3c26| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: pegasus-notetaker - fix potential out-of-bounds access
In the pegasus_notetaker driver, the pegasus_probe() function allocates the URB transfer buffer using the wMaxPacketSize value from the endpoint descriptor. An attacker can use a malicious USB descriptor to force the allocation of a very small buffer.
Subsequently, if the device sends an interrupt packet with a specific pattern (e.g., where the first byte is 0x80 or 0x42), the pegasus_parse_packet() function parses the packet without checking the allocated buffer size. This leads to an out-of-bounds memory access.
From the CVE record · Linux
The Linux kernel's pegasus-notetaker driver can access memory out of bounds when parsing an interrupt packet. An attacker needs a USB device that supplies a malicious endpoint descriptor to cause a small buffer allocation, then sends a packet with a triggering pattern.
Anyone running a Linux kernel with the pegasus-notetaker driver should check their version; affected versions are not specified.