# comedi: ni_usb6501: fix NULL-deref in command paths

CVE record · `CVE-2021-47476`

- **Identifiers:** `CVE-2021-47476`
- **State:** Confirmed
- **Severity:** CVSS 4.6 Medium
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-476](https://cwe.mitre.org/data/definitions/476.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 22 May 2024
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 22 May 2024, 08:19 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before 58478143771b20ab219937b1c30a706590a59224` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before aa39738423503825625853b643b9e99d11c23816` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before df7b1238f3b599a0b9284249772cdfd1ea83a632` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before bc51111bf6e8e7b6cc94b133e4c291273a16acd1` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before b0156b7c9649d8f55a2ce3d3258509f1b2a181c3` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before 4a9d43cb5d5f39fa39fc1da438517004cc95f7ea` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before d6a727a681a39ae4f73081a9bedb45d14f95bdd1` (git)
  - affected: `a03bb00e50ab4c07107da58a52a0bff7943f360c to before 907767da8f3a925b060c740e0b5c92ea7dbec440` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.18`
  - unaffected: `before 3.18` (semver)
  - unaffected: `4.4.292 to 4.4.*, inclusive` (semver)
  - unaffected: `4.9.290 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.255 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.217 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.159 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.79 to 5.10.*, inclusive` (semver)
  - unaffected: `5.14.18 to 5.14.*, inclusive` (semver)
  - unaffected: `5.15.2 to 5.15.*, inclusive` (semver)
  - unaffected: `5.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 4.6 Medium, CVSS 3.1: `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0039, the 33rd percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 22 May 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-47476](https://www.cve.org/CVERecord?id=CVE-2021-47476)
- [NVD: CVE-2021-47476](https://nvd.nist.gov/vuln/detail/CVE-2021-47476)

### References from the CNA

- <https://git.kernel.org/stable/c/58478143771b20ab219937b1c30a706590a59224>
- <https://git.kernel.org/stable/c/aa39738423503825625853b643b9e99d11c23816>
- <https://git.kernel.org/stable/c/df7b1238f3b599a0b9284249772cdfd1ea83a632>
- <https://git.kernel.org/stable/c/bc51111bf6e8e7b6cc94b133e4c291273a16acd1>
- <https://git.kernel.org/stable/c/b0156b7c9649d8f55a2ce3d3258509f1b2a181c3>
- <https://git.kernel.org/stable/c/ef143dc0c3defe56730ecd3a9de7b3e1d7e557c1>
- <https://git.kernel.org/stable/c/4a9d43cb5d5f39fa39fc1da438517004cc95f7ea>
- <https://git.kernel.org/stable/c/d6a727a681a39ae4f73081a9bedb45d14f95bdd1>
- <https://git.kernel.org/stable/c/907767da8f3a925b060c740e0b5c92ea7dbec440>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-47476>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-47476/>. Everything for agents: <https://agentprime.io/llms.txt>.
