# CVE-2021-47161: spi: spi-fsl-dspi: Fix a resource leak in an error handling path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-209
- **Published:** 2024-03-25T09:16:15.132Z
- **Modified:** 2026-06-17T04:16:48.010Z

## Who should check

- Anyone running Linux \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 10a089bae827ec30ad9b6cb7048020a62fae0cfa; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 00450ed03a17143e2433b461a656ef9cd17c2f1d; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< fe6921e3b8451a537e01c031b8212366bb386e3e; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 12391be4724acc9269e1845ccbd881df37de4b56; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 680ec0549a055eb464dce6ffb4bfb736ef87236e
- Anyone running Linux 4.10

## Description

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

spi: spi-fsl-dspi: Fix a resource leak in an error handling path

'dspi\_request\_dma()' should be undone by a 'dspi\_release\_dma()' call in the
error handling path of the probe function, as already done in the remove
function

## Affected and fixed versions

- Linux: \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 10a089bae827ec30ad9b6cb7048020a62fae0cfa; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 00450ed03a17143e2433b461a656ef9cd17c2f1d; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< fe6921e3b8451a537e01c031b8212366bb386e3e; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 12391be4724acc9269e1845ccbd881df37de4b56; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 680ec0549a055eb464dce6ffb4bfb736ef87236e (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- Upgrade Linux to 680ec0549a055eb464dce6ffb4bfb736ef87236e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47161. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47161.md
Affected: Linux >= 90ba37033cb94207e97c4ced9be575770438213b, < 10a089bae827ec30ad9b6cb7048020a62fae0cfa; >= 90ba37033cb94207e97c4ced9be575770438213b, < 00450ed03a17143e2433b461a656ef9cd17c2f1d; >= 90ba37033cb94207e97c4ced9be575770438213b, < 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1; >= 90ba37033cb94207e97c4ce…
Fixed in: Linux 10a089bae827ec30ad9b6cb7048020a62fae0cfa, Linux 00450ed03a17143e2433b461a656ef9cd17c2f1d, Linux 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1, Linux 12391be4724acc9269e1845ccbd881df37de4b56, Linux 680ec0549a055eb464dce6ffb4bfb736ef87236e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47161 being exploited?

There is no confirmed exploitation: CVE-2021-47161 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47161?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47161?

Linux \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 10a089bae827ec30ad9b6cb7048020a62fae0cfa; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 00450ed03a17143e2433b461a656ef9cd17c2f1d; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< fe6921e3b8451a537e01c031b8212366bb386e3e; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 12391be4724acc9269e1845ccbd881df37de4b56; \>= 90ba37033cb94207e97c4ced9be575770438213b, \< 680ec0549a055eb464dce6ffb4bfb736ef87236e; Linux 4.10.

### Is there a fix for CVE-2021-47161?

Yes. Fixed in Linux 10a089bae827ec30ad9b6cb7048020a62fae0cfa, Linux 00450ed03a17143e2433b461a656ef9cd17c2f1d, Linux 15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1, Linux 12391be4724acc9269e1845ccbd881df37de4b56, Linux 680ec0549a055eb464dce6ffb4bfb736ef87236e. Upgrade Linux to 680ec0549a055eb464dce6ffb4bfb736ef87236e or later.

### How do I check if I'm affected by CVE-2021-47161?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/10a089bae827ec30ad9b6cb7048020a62fae0cfa>
- patch: <https://git.kernel.org/stable/c/00450ed03a17143e2433b461a656ef9cd17c2f1d>
- patch: <https://git.kernel.org/stable/c/15d1cc4b4b585f9a2ce72c52cca004d5d735bdf1>
- patch: <https://git.kernel.org/stable/c/fe6921e3b8451a537e01c031b8212366bb386e3e>
- patch: <https://git.kernel.org/stable/c/12391be4724acc9269e1845ccbd881df37de4b56>
- patch: <https://git.kernel.org/stable/c/680ec0549a055eb464dce6ffb4bfb736ef87236e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47161>

HTML: <https://flawdb.com/CVE-2021-47161> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47161>
