# mtd: core: Fix refcount error in del_mtd_device()

CVE record · `CVE-2022-50457`

- **Identifiers:** `CVE-2022-50457`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 1 Oct 2025
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 1 Oct 2025, 11:45 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: `63aff1411fc609d737830b79c6b06ce62348c582 to before 0de86087b20675c53fda2bc903dfc26a7ec99856` (git)
  - affected: `00596576a05145a1b5672897a82ef87af00becf4 to before f6016557f1ef7735963bd8691592d2797bbf91d2` (git)
  - affected: `00596576a05145a1b5672897a82ef87af00becf4 to before 616dc895d982026f41f500c88d1bfea004938cc8` (git)
  - affected: `00596576a05145a1b5672897a82ef87af00becf4 to before 56570bdad5e31c5c538cd6efff5c4510256e1bb4` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.17`
  - unaffected: `before 5.17` (semver)
  - unaffected: `6.0.16 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1.2 to 6.1.*, inclusive` (semver)
  - unaffected: `6.2 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel MTD core, in del_mtd_device(), has a reference-count error: the device node pointer is cleared before its reference is released, so the release does nothing and the node's reference count leaks. The affected versions are listed as 5.17 up to the fixes given by commits, and the commit IDs are not version numbers. The source gives few details about any attacker capability or impact, and no fixed version range is clearly stated for every branch, so upgrade to a kernel with the fix applied.

Written 13 Nov 2026.

## 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

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0016, the 5th percentile, on 20 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 1 Oct 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/0de86087b20675c53fda2bc903dfc26a7ec99856>
- <https://git.kernel.org/stable/c/f6016557f1ef7735963bd8691592d2797bbf91d2>
- <https://git.kernel.org/stable/c/616dc895d982026f41f500c88d1bfea004938cc8>
- <https://git.kernel.org/stable/c/56570bdad5e31c5c538cd6efff5c4510256e1bb4>

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-2022-50457>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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