usb: usblp: fix heap leak in IEEE 1284 device ID via short response
Published May 28, 2026
5.5
MEDIUMCVSS 3.1
EPSS 0.16%
Description
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.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 2.6.12StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<2.6.12
- Version 5.10.258StatusunaffectedConstraints<=5.10.*
- Version 5.15.209StatusunaffectedConstraints<=5.15.*
- Version 6.1.175StatusunaffectedConstraints<=6.1.*
- Version 6.12.88StatusunaffectedConstraints<=6.12.*
- Version 6.18.30StatusunaffectedConstraints<=6.18.*
- Version 6.6.140StatusunaffectedConstraints<=6.6.*
- Version 7.0.7StatusunaffectedConstraints<=7.0.*
- Version 7.1StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 2.6.12.1 · < 5.10.258
- ≥ 5.11 · < 5.15.209
- ≥ 5.16 · < 6.1.175
- ≥ 6.2 · < 6.6.140
- ≥ 6.7 · < 6.12.88
- ≥ 6.13 · < 6.18.30
- ≥ 6.19 · < 7.0.7
- 2.6.12
- 2.6.12
- 2.6.12
- 2.6.12
- 2.6.12
- 7.1
- 7.1
No data.
Red Hat Enterprise Linux 10
kernel
Fix deferred
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Fix deferred
Red Hat Enterprise Linux 7
kernel-rt
Fix deferred
Red Hat Enterprise Linux 8
kernel
Fix deferred
Red Hat Enterprise Linux 8
kernel-rt
Fix deferred
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
May–Oct 2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.16% (0.00162) | 4.87th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.12% (0.00122) | 2.33th | v5 (v2026.06.15) |
| May 28, 2026 | 0.02% (0.00018) | 5.15th | v4 (v2025.03.14) |
References (13)
- https://access.redhat.com/security/cve/CVE-2026-46151 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2482579 Issue Tracking
- https://git.kernel.org/stable/c/4220d4dd062ea3d3eb056a6cbe0b568e740d20b1 Patch
- https://git.kernel.org/stable/c/4650cce898fcd0bb8c33e529984687a8caed10c3 Patch
- https://git.kernel.org/stable/c/522d17e93a85575256894212d10e5a1fa6f36529 Patch
- https://git.kernel.org/stable/c/612640abbd9e0947fe8f37aaf0cf324265d7caa4 Patch
- https://git.kernel.org/stable/c/6d8142141c942c0d8e79343cffda9c44bb1f3f4f Patch
- https://git.kernel.org/stable/c/6e29c32a27218f2dcd4a4e9b0b3c5e7728640698 Patch
- https://git.kernel.org/stable/c/7a400c6fe3617e31e690e3f7ca37bb335e0498f3 Patch
- https://git.kernel.org/stable/c/8247f52d822180e94ccbfdab91613af386a4e34d Patch
- https://lore.kernel.org/linux-cve-announce/2026052822-CVE-2026-46151-1361@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2026-46151
- https://www.cve.org/CVERecord?id=CVE-2026-46151
Change history (0)
No recorded changes yet.