4.6
MEDIUM
CVE-2021-47476
Linux Kernel Comedi ni_usb6501 Null Pointer Dereference Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: comedi: ni_usb6501: fix NULL-deref in command paths The driver uses endpoint-sized USB transfer buffers but had no sanity checks on the sizes. This can lead to zero-size-pointer dereferences or overflowed transfer buffers in ni6501_port_command() and ni6501_counter_command() if a (malicious) device has smaller max-packet sizes than expected (or when doing descriptor fuzz testing). Add the missing sanity checks to probe().

INFO

Published Date :

May 22, 2024, 9:15 a.m.

Last Modified :

April 2, 2025, 3:10 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

0.9
Affected Products

The following products are affected by CVE-2021-47476 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-47476.

URL Resource
https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea Patch
https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 Patch
https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 Patch
https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 Patch
https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 Patch
https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 Patch
https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 Patch
https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 Patch
https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 Patch
https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea Patch
https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 Patch
https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 Patch
https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 Patch
https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 Patch
https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 Patch
https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 Patch
https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 Patch
https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 Patch

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-47476 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-47476 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 02, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.14.255 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.5 up to (excluding) 4.9.290 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.217 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.159 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.14.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 5.15.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.18 up to (excluding) 4.4.292 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.79
    Added Reference Type CVE: https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea
    Added Reference https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224
    Added Reference https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440
    Added Reference https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816
    Added Reference https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3
    Added Reference https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1
    Added Reference https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1
    Added Reference https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632
    Added Reference https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 01, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-476
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 22, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: comedi: ni_usb6501: fix NULL-deref in command paths The driver uses endpoint-sized USB transfer buffers but had no sanity checks on the sizes. This can lead to zero-size-pointer dereferences or overflowed transfer buffers in ni6501_port_command() and ni6501_counter_command() if a (malicious) device has smaller max-packet sizes than expected (or when doing descriptor fuzz testing). Add the missing sanity checks to probe().
    Added Reference kernel.org https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-47476 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-47476 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 14, 2025 12:53