LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47476: comedi: ni_usb6501: fix NULL-deref in command paths

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().

MediumCVSS 4.6Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-47476 is a Linux kernel driver flaw that can let a malicious or malformed USB device crash an affected system. It concerns the Comedi ni_usb6501 driver. The business risk is mainly downtime where untrusted physical USB devices can be connected.

Executive priority

Treat as normal-priority kernel hygiene, with faster action for systems where users or visitors can attach USB hardware. It is not currently supported as internet-exploitable or actively exploited by the provided evidence.

Technical view

The ni_usb6501 Comedi driver lacked endpoint max-packet size checks during probe. Small or malformed USB descriptors could trigger zero-size pointer dereferences or overflowed transfer buffers in ni6501_port_command() and ni6501_counter_command(), causing high availability impact.

Likely exposure

Exposure is most likely on Linux systems with the ni_usb6501 Comedi USB driver present and reachable by physical USB attachment. Locked-down servers without accessible USB ports are less exposed.

Exploitation context

The CVSS vector requires physical access. The provided sources do not show active exploitation, and KEV is false. Evidence supports crash or denial-of-service risk, not confidentiality or integrity compromise.

Researcher notes

The issue is CWE-476 and availability-focused. The root cause is missing sanity checks on USB endpoint-sized transfer buffers during probe, affecting command paths when descriptors report smaller max-packet sizes than expected.

Mitigation direction

  • Apply Linux kernel updates containing the referenced stable fixes.
  • Follow distribution vendor advisories for exact fixed kernel packages.
  • Disable or avoid loading ni_usb6501 if the hardware is not needed.
  • Restrict physical USB access on exposed workstations, kiosks, and lab systems.

Validation and detection

  • Inventory Linux systems for affected kernel versions and Comedi driver use.
  • Check whether the ni_usb6501 module is present or loaded.
  • Compare deployed kernels against vendor fixed package guidance or stable commit backports.
  • Review physical USB access controls for systems where the driver is enabled.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-476: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-47476 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
2ADP providers
10Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
4.6CVSS 3.1MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H0.93.6CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

4.6Medium
CVSS 3.1 vector shape for CVE-2021-47476Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
CVECVE Program Container
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxa03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360c, a03bb00e50ab4c07107da58a52a0bff7943f360cunaffected
LinuxLinux3.18, 0, 4.4.292, 4.9.290, 4.14.255, 4.19.217, 5.4.159, 5.10.79, 5.14.18, 5.15.2, 5.16affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-476 · source CWE mapping

NULL Pointer Dereference

NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.