Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97540 Overview
CVE-2026-97540 affects the Linux kernel's pegasus USB Ethernet driver (drivers/net/usb/pegasus.c). The driver relied on pointer arithmetic against its static usb_device_id table to derive an index for additional per-device information. When a dynamic USB ID is registered at runtime, the usb_device_id passed to the probe function lives on the heap rather than inside the static table. The resulting index is wildly out of bounds, leading to out-of-bounds memory access inside the kernel. Upstream maintainers resolved the issue by storing the required information in the driver_info field of usb_device_id and rewriting the dynamic ID parsing logic.
Critical Impact
A privileged user able to register a dynamic USB ID for the pegasus driver can trigger an out-of-bounds read in kernel space, risking memory corruption or denial of service.
Affected Products
- Linux kernel versions containing the pegasus USB Ethernet driver prior to the fixing commits
- Distributions shipping the vulnerable drivers/net/usb/pegasus.c without backported fixes
- Stable kernel branches referenced by patches 61b84e964, 7654812b65, 9425a13960, and ce8101c331
Discovery Timeline
- 2026-09-25 - CVE-2026-97540 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97540
Vulnerability Analysis
The pegasus driver supports multiple USB Ethernet chipsets and historically maintained a side table of per-device parameters indexed by position in the static usb_device_id array. The driver computed the index with pointer arithmetic such as id - pegasus_ids, assuming the id pointer passed to probe always referenced an entry inside the static table.
The Linux USB core allows administrators to register additional device IDs at runtime through the new_id sysfs attribute. In that path, the kernel allocates a fresh usb_device_id structure on the heap and passes it to the driver's probe callback. Subtracting the static table base from a heap pointer produces an attacker-influenced, out-of-range index. The driver then dereferences that index when accessing per-device information, resulting in an out-of-bounds read of kernel memory.
Root Cause
The root cause is unsafe pointer arithmetic across memory regions. The driver conflated "position in a fixed table" with "identity of the matched device," an assumption violated by dynamic ID registration. This is a classic out-of-bounds read condition stemming from an invalid base-pointer assumption.
Attack Vector
Exploitation requires the ability to write to /sys/bus/usb/drivers/pegasus/new_id, which is restricted to privileged users (typically root or CAP_SYS_ADMIN). Once a dynamic ID is registered and a matching device is attached (or emulated), the subsequent probe call triggers the out-of-bounds access. The attack vector is therefore local and privileged, but the impact lands inside kernel context.
No verified public exploit code is available. For technical context, see the upstream commits: Kernel Patch 61b84e964, Kernel Patch 7654812b65, Kernel Patch 9425a13960, and Kernel Patch ce8101c331.
Detection Methods for CVE-2026-97540
Indicators of Compromise
- Unexpected writes to /sys/bus/usb/drivers/pegasus/new_id from non-administrative workflows
- Kernel log entries referencing pegasus probe failures, KASAN reports, or oops traces originating in drivers/net/usb/pegasus.c
- Insertion of pegasus-compatible USB Ethernet adapters on systems where such hardware is not expected
Detection Strategies
- Inventory running kernel versions and compare against the fixed commits in each stable branch
- Audit loaded kernel modules for pegasus on servers and workstations that do not require USB Ethernet support
- Monitor sysfs activity for dynamic USB ID registration using auditd rules on /sys/bus/usb/drivers/*/new_id
Monitoring Recommendations
- Forward kernel ring buffer (dmesg) and /var/log/kern.log events to a central log platform for anomaly review
- Alert on new USB device enumeration events on servers, especially network-class devices
- Track privileged shell sessions that interact with /sys/bus/usb/drivers/ paths
How to Mitigate CVE-2026-97540
Immediate Actions Required
- Apply the vendor-supplied kernel update that includes the pegasus driver_info refactor
- Blacklist the pegasus kernel module on systems that do not use USB Ethernet adapters based on supported pegasus chipsets
- Restrict root and CAP_SYS_ADMIN access, since dynamic USB ID registration requires those privileges
Patch Information
The fix moves per-device metadata into the driver_info field of each usb_device_id and rewrites the dynamic ID parsing path to populate the reserved entry directly, eliminating the pointer-arithmetic index. Apply vendor kernels incorporating Kernel Patch 61b84e964, Kernel Patch 7654812b65, Kernel Patch 9425a13960, or Kernel Patch ce8101c331, depending on the stable branch in use.
Workarounds
- Blacklist the module by adding blacklist pegasus to a file under /etc/modprobe.d/ and rebuilding the initramfs
- Use USBGuard or similar allow-listing to prevent unauthorized USB Ethernet devices from attaching
- Avoid writing to /sys/bus/usb/drivers/pegasus/new_id on unpatched kernels
# Prevent the vulnerable driver from loading on unpatched hosts
echo 'blacklist pegasus' | sudo tee /etc/modprobe.d/blacklist-pegasus.conf
sudo rmmod pegasus 2>/dev/null || true
sudo update-initramfs -u # Debian/Ubuntu
# or: sudo dracut -f # RHEL/Fedora
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

