CVE-2026-46151·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: usb: usblp: fix heap leak in IEEE 1284 device ID via short response usblp_ctrl_msg() collapses the usb_control_msg() return value to 0/-errno, discarding the actual number of bytes transferred. A broken printer can complete the GET_DEVICE_ID control transfer short and the driver has no way to know. usblp_cache_device_id_string() reads the 2-byte big-endian length prefix from the response and trusts it (clamped only to the buffer bounds). The buffer is kmalloc(1024) at probe time. A device that sends exactly two bytes (e.g. 0x03 0xFF, claiming a 1023-byte ID) leaves device_id_string[2..1022] holding stale kmalloc heap. That stale data is then exposed: - via the ieee1284_id sysfs attribute (sprintf("%s", buf+2), truncated at the first NUL in the stale heap), and - via the IOCNR_GET_DEVICE_ID ioctl, which copy_to_user()s the full claimed length regardless of NULs, up to 1021 bytes of uninitialized heap, with the leak size chosen by the device. Fix this up by just zapping the buffer with zeros before each request sent to the device.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.0.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.0.7
Fixed in: 7.0.7
How to fix this CVE
Update your Linux kernel to version 7.0.7 or later to resolve this USB printer device ID heap leak vulnerability. The fix prevents malicious or malfunctioning USB printers from exposing uninitialized kernel memory through sysfs attributes and ioctl calls by zeroing the device ID buffer before each request. Apply this update promptly on any system with USB printer support enabled.
sudo dnf update kernel kernel-headers kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — compare against 6.19 to 7.0.7 range; versions 7.0.7+ are patched
- Verify USB printer driver is loaded: lsmod | grep usblp — if the module is present, the vulnerable code path is active
- Check for IEEE 1284 device ID sysfs exposure: cat /sys/class/usb/lp*/ieee1284_id 2>/dev/null — any output confirms the attribute is exposed
- Validate the fix with: grep -i 'zaping buffer with zeros' /boot/config-$(uname -r) or verify kernel build date is after the patch release (May 2026+)
FAQ
What is CVE-2026-46151?
A heap memory leak in the Linux kernel's USB line printer (usblp) driver that occurs when a malicious or faulty USB printer sends a truncated IEEE 1284 device ID response. An attacker can read up to 1021 bytes of uninitialized kernel heap memory through sysfs attributes or ioctl calls.
Is CVE-2026-46151 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and no public exploits are currently available. However, exploitation requires only a specially crafted USB device and requires local or physical access.
What versions of Kernel are affected by CVE-2026-46151?
Linux kernel versions from 6.19 through 7.0.6 are vulnerable. Version 7.0.7 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-46151?
Run: uname -r — if the output is between 6.19 and 7.0.6 (inclusive), you are vulnerable. Additionally, confirm USB printer support with: lsmod | grep usblp
Does Defensia detect CVE-2026-46151?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-46151 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4220d4dd062ea3d3eb056a6cbe0b568e740d20b1
- https://git.kernel.org/stable/c/4650cce898fcd0bb8c33e529984687a8caed10c3
- https://git.kernel.org/stable/c/522d17e93a85575256894212d10e5a1fa6f36529
- https://git.kernel.org/stable/c/612640abbd9e0947fe8f37aaf0cf324265d7caa4
- https://git.kernel.org/stable/c/6d8142141c942c0d8e79343cffda9c44bb1f3f4f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-46151. Free for 1 server.
Get started free