CVE-2021-47436
published 2024-05-22CVE-2021-47436: In the Linux kernel, the following vulnerability has been resolved: usb: musb: dsps: Fix the probe error path Commit 7c75bde329d7 ("usb: musb: musb_dsps…
PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.23%
13.3th percentile
In the Linux kernel, the following vulnerability has been resolved:
usb: musb: dsps: Fix the probe error path
Commit 7c75bde329d7 ("usb: musb: musb_dsps: request_irq() after
initializing musb") has inverted the calls to
dsps_setup_optional_vbus_irq() and dsps_create_musb_pdev() without
updating correctly the error path. dsps_create_musb_pdev() allocates and
registers a new platform device which must be unregistered and freed
with platform_device_unregister(), and this is missing upon
dsps_setup_optional_vbus_irq() error.
While on the master branch it seems not to trigger any issue, I observed
a kernel crash because of a NULL pointer dereference with a v5.10.70
stable kernel where the patch mentioned above was backported. With this
kernel version, -EPROBE_DEFER is returned the first time
dsps_setup_optional_vbus_irq() is called which triggers the probe to
error out without unregistering the platform device. Unfortunately, on
the Beagle Bone Black Wireless, the platform device still living in the
system is being used by the USB Ethernet gadget driver, which during the
boot phase triggers the crash.
My limited knowledge of the musb world prevents me to revert this commit
which was sent to silence a robot warning which, as far as I understand,
does not make sense. The goal of this patch was to prevent an IRQ to
fire before the platform device being registered. I think this cannot
ever happen due to the fact that enabling the interrupts is done by the
->enable() callback of the platform musb device, and this platform
device must be already registered in order for the core or any other
user to use this callback.
Hence, I decided to fix the error path, which might prevent future
errors on mainline kernels while also fixing older ones.
Affected
24 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.14.16-1 (bookworm) | linux 5.14.16-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 4.14.247 < 4.14.252 | 4.14.252 |
| linux | linux | >= 4.19.207 < 4.19.213 | 4.19.213 |
| linux | linux | >= 5.10.67 < 5.10.75 | 5.10.75 |
| linux | linux | >= 5.13.19 < 5.14 | 5.14 |
| linux | linux | >= 5.14.6 < 5.14.14 | 5.14.14 |
| linux | linux | >= 5.4.148 < 5.4.155 | 5.4.155 |
| linux | linux | >= 5269937d1483d3159d5b51907346e4f4b13ef079 < 5ed60a430fb5f3d93e7fef66264daef466b4d10c | 5ed60a430fb5f3d93e7fef66264daef466b4d10c |
| linux | linux | >= 72bb3eafcfdd156713a3ea0c9c95d536bd6e6e55 < ff9249aab39820be11b6975a10d94253b7d426fc | ff9249aab39820be11b6975a10d94253b7d426fc |
| linux | linux | >= 7c75bde329d7e2a93cf86a5c15c61f96f1446cdc < c2115b2b16421d93d4993f3fe4c520e91d6fe801 | c2115b2b16421d93d4993f3fe4c520e91d6fe801 |
| linux | linux | >= 8de01a896c1bc14b6b65b8d26013626597a45eda < 9d89e287116796bf987cc48f5c8632ef3048f8eb | 9d89e287116796bf987cc48f5c8632ef3048f8eb |
| linux | linux | >= 9a4a6805294fa7d2653e82972bdaf9e3e1f3d3c9 < 9ab5d539bc975b8dcde86eca1b58d836b657732e | 9ab5d539bc975b8dcde86eca1b58d836b657732e |
| linux | linux | >= ffc825049ed2e8c849d318e987fd5073e0be462f < e923bce31ffefe4f60edfc6b84f62d4a858f3676 | e923bce31ffefe4f60edfc6b84f62d4a858f3676 |
| linux | linux_kernel | >= 0 < 5.10.84-1 | 5.10.84-1 |
| linux | linux_kernel | >= 0 < 5.14.16-1 | 5.14.16-1 |
| linux | linux_kernel | >= 0 < 5.14.16-1 | 5.14.16-1 |
| linux | linux_kernel | >= 0 < 5.14.16-1 | 5.14.16-1 |
| linux | linux_kernel | >= 4.14.247 < 4.14.252 | 4.14.252 |
| linux | linux_kernel | >= 4.19.207 < 4.19.213 | 4.19.213 |
| linux | linux_kernel | >= 5.10.67 < 5.10.75 | 5.10.75 |
| linux | linux_kernel | >= 5.13.19 < 5.14 | 5.14 |
| linux | linux_kernel | >= 5.14.6 < 5.14.14 | 5.14.14 |
| linux | linux_kernel | >= 5.4.148 < 5.4.155 | 5.4.155 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-6xwm-63wf-q2q3: In the Linux kernel, the following vulnerability has been resolved:
usb: musb: dsps: Fix the probe error path
Commit 7c75bde329d7 ("usb: musb: musb_
ghsa_unreviewed·2024-05-22
CVE-2021-47436 [MEDIUM] CWE-476 GHSA-6xwm-63wf-q2q3: In the Linux kernel, the following vulnerability has been resolved:
usb: musb: dsps: Fix the probe error path
Commit 7c75bde329d7 ("usb: musb: musb_
In the Linux kernel, the following vulnerability has been resolved:
usb: musb: dsps: Fix the probe error path
Commit 7c75bde329d7 ("usb: musb: musb_dsps: request_irq() after
initializing musb") has inverted the calls to
dsps_setup_optional_vbus_irq() and dsps_create_musb_pdev() without
updating correctly the error path. dsps_create_musb_pdev() allocates and
registers a new platform device which must be unregistered and freed
with platform_device_unregister(), and this is missing upon
dsps_setup_optional_vbus_irq() error.
While on the master branch it seems not to trigger any issue, I observed
a kernel crash because of a NULL pointer dereference with a v5.10.70
stable kernel where the patch mentioned above was backported. With this
kernel version, -EPROBE_DEFER is returned the first time
OSV
CVE-2021-47436: In the Linux kernel, the following vulnerability has been resolved: usb: musb: dsps: Fix the probe error path Commit 7c75bde329d7 ("usb: musb: musb_ds
osv·2024-05-22·CVSS 5.5
CVE-2021-47436 [MEDIUM] CVE-2021-47436: In the Linux kernel, the following vulnerability has been resolved: usb: musb: dsps: Fix the probe error path Commit 7c75bde329d7 ("usb: musb: musb_ds
In the Linux kernel, the following vulnerability has been resolved: usb: musb: dsps: Fix the probe error path Commit 7c75bde329d7 ("usb: musb: musb_dsps: request_irq() after initializing musb") has inverted the calls to dsps_setup_optional_vbus_irq() and dsps_create_musb_pdev() without updating correctly the error path. dsps_create_musb_pdev() allocates and registers a new platform device which must be unregistered and freed with platform_device_unregister(), and this is missing upon dsps_setup_optional_vbus_irq() error. While on the master branch it seems not to trigger any issue, I observed a kernel crash because of a NULL pointer dereference with a v5.10.70 stable kernel where the patch mentioned above was backported. With this kernel version, -EPROBE_DEFER is returned the first time ds
Red Hat
kernel: usb: musb: dsps: Fix the probe error path
vendor_redhat·2024-05-22·CVSS 5.5
CVE-2021-47436 [MEDIUM] CWE-476 kernel: usb: musb: dsps: Fix the probe error path
kernel: usb: musb: dsps: Fix the probe error path
In the Linux kernel, the following vulnerability has been resolved:
usb: musb: dsps: Fix the probe error path
Commit 7c75bde329d7 ("usb: musb: musb_dsps: request_irq() after
initializing musb") has inverted the calls to
dsps_setup_optional_vbus_irq() and dsps_create_musb_pdev() without
updating correctly the error path. dsps_create_musb_pdev() allocates and
registers a new platform device which must be unregistered and freed
with platform_device_unregister(), and this is missing upon
dsps_setup_optional_vbus_irq() error.
While on the master branch it seems not to trigger any issue, I observed
a kernel crash because of a NULL pointer dereference with a v5.10.70
stable kernel where the patch mentioned above was backported. With this
kernel v
Debian
CVE-2021-47436: linux - In the Linux kernel, the following vulnerability has been resolved: usb: musb: ...
vendor_debian·2021·CVSS 5.5
CVE-2021-47436 [MEDIUM] CVE-2021-47436: linux - In the Linux kernel, the following vulnerability has been resolved: usb: musb: ...
In the Linux kernel, the following vulnerability has been resolved: usb: musb: dsps: Fix the probe error path Commit 7c75bde329d7 ("usb: musb: musb_dsps: request_irq() after initializing musb") has inverted the calls to dsps_setup_optional_vbus_irq() and dsps_create_musb_pdev() without updating correctly the error path. dsps_create_musb_pdev() allocates and registers a new platform device which must be unregistered and freed with platform_device_unregister(), and this is missing upon dsps_setup_optional_vbus_irq() error. While on the master branch it seems not to trigger any issue, I observed a kernel crash because of a NULL pointer dereference with a v5.10.70 stable kernel where the patch mentioned above was backported. With this kernel version, -EPROBE_DEFER is returned the first time ds
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/5ed60a430fb5f3d93e7fef66264daef466b4d10chttps://git.kernel.org/stable/c/9ab5d539bc975b8dcde86eca1b58d836b657732ehttps://git.kernel.org/stable/c/9d89e287116796bf987cc48f5c8632ef3048f8ebhttps://git.kernel.org/stable/c/c2115b2b16421d93d4993f3fe4c520e91d6fe801https://git.kernel.org/stable/c/e923bce31ffefe4f60edfc6b84f62d4a858f3676https://git.kernel.org/stable/c/ff9249aab39820be11b6975a10d94253b7d426fchttps://git.kernel.org/stable/c/5ed60a430fb5f3d93e7fef66264daef466b4d10chttps://git.kernel.org/stable/c/9ab5d539bc975b8dcde86eca1b58d836b657732ehttps://git.kernel.org/stable/c/9d89e287116796bf987cc48f5c8632ef3048f8ebhttps://git.kernel.org/stable/c/c2115b2b16421d93d4993f3fe4c520e91d6fe801https://git.kernel.org/stable/c/e923bce31ffefe4f60edfc6b84f62d4a858f3676https://git.kernel.org/stable/c/ff9249aab39820be11b6975a10d94253b7d426fc
2024-05-22
Published