CVE-2022-49151

can: mcba_usb: properly check endpoint type

No CVSS score yet EPSS 0.27%

Published 26 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49151

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49151 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

can: mcba_usb: properly check endpoint type

Syzbot reported warning in usb_submit_urb() which is caused by wrong endpoint type. We should check that in endpoint is actually present to prevent this warning.

Found pipes are now saved to struct mcba_priv and code uses them directly instead of making pipes in place.

Fail log:

| usb 5-1: BOGUS urb xfer, pipe 3 != type 1 | WARNING: CPU: 1 PID: 49 at drivers/usb/core/urb.c:502 usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502 | Modules linked in: | CPU: 1 PID: 49 Comm: kworker/1:2 Not tainted 5.17.0-rc6-syzkaller-00184-g38f80f42147f #0 | Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 | Workqueue: usb_hub_wq hub_event | RIP: 0010:usb_submit_urb+0xed2/0x18a0 drivers/usb/core/urb.c:502 | ... | Call Trace: | <TASK> | mcba_usb_start drivers/net/can/usb/mcba_usb.c:662 [inline] | mcba_usb_probe+0x8a3/0xc50 drivers/net/can/usb/mcba_usb.c:858 | usb_probe_interface+0x315/0x7f0 drivers/usb/core/driver.c:396 | call_driver_probe drivers/base/dd.c:517 [inline]

Exploitation

EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before 5598442edc29e8f6f2380e4b471dc1a3fcd80508
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before b48d1bb3f1ca337ad653022aefb5a40a47dfe5cd
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before cbd110b8dd7ad763bf413f71c0484116ae9302d4
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before ef0acc514123140157b19a9ff2e2de5d91d612bc
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before fa9c1f14002dc0d5293e16a2007bd89b6e79207b
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before 88272b4a37913bdf6f339162a7920bd8e9b49de2
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before f2ec3cd0f34f8c3f94bc21fbba14868301c9c49d
affected from 51f3baad7de943780ce0c17bd7975df567dd6e14, before 136bed0bfd3bc9c95c88aafff2d22ecb3a919f23
Other versions: unaffected
Linux
affected 4.12
unaffected before 4.12
unaffected from 4.14.276 up to and including 4.14.*
unaffected from 4.19.238 up to and including 4.19.*
unaffected from 5.4.189 up to and including 5.4.*
unaffected from 5.10.110 up to and including 5.10.*
unaffected from 5.15.33 up to and including 5.15.*
unaffected from 5.16.19 up to and including 5.16.*
unaffected from 5.17.2 up to and including 5.17.*
unaffected 5.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49151 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49151

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49151
trivy image --scanners vuln IMAGE | grep CVE-2022-49151

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49151 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.