CVE-2022-49151

Source
https://cve.org/CVERecord?id=CVE-2022-49151
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49151.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49151
Downstream
Related
Published
2025-02-26T01:55:17.665Z
Modified
2026-03-12T03:24:42.615573Z
Summary
can: mcba_usb: properly check endpoint type
Details

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

can: mcba_usb: properly check endpoint type

Syzbot reported warning in usbsubmiturb() 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 usbsubmiturb+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: usbhubwq hubevent | RIP: 0010:usbsubmiturb+0xed2/0x18a0 drivers/usb/core/urb.c:502 | ... | Call Trace: | <TASK> | mcbausbstart drivers/net/can/usb/mcbausb.c:662 [inline] | mcbausbprobe+0x8a3/0xc50 drivers/net/can/usb/mcbausb.c:858 | usbprobeinterface+0x315/0x7f0 drivers/usb/core/driver.c:396 | calldriver_probe drivers/base/dd.c:517 [inline]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49151.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
51f3baad7de943780ce0c17bd7975df567dd6e14
Fixed
5598442edc29e8f6f2380e4b471dc1a3fcd80508
Fixed
b48d1bb3f1ca337ad653022aefb5a40a47dfe5cd
Fixed
cbd110b8dd7ad763bf413f71c0484116ae9302d4
Fixed
ef0acc514123140157b19a9ff2e2de5d91d612bc
Fixed
fa9c1f14002dc0d5293e16a2007bd89b6e79207b
Fixed
88272b4a37913bdf6f339162a7920bd8e9b49de2
Fixed
f2ec3cd0f34f8c3f94bc21fbba14868301c9c49d
Fixed
136bed0bfd3bc9c95c88aafff2d22ecb3a919f23

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49151.json"