CVE-2022-49212
mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= f88fc122cc34c2545dec9562eaab121494e401ef, < 0856bf27057561f42b37df111603cf5a0d040294; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9b08d211db4c447eb1a07df65e45e0aa772e0fa6; >= f88fc122cc34c2545dec9562eaab121494e401ef, < a3587259ae553e41d1ce8c7435351a5d6b299a11; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fe0e2ce5c87e9c0b9485ff566362030aa55972cf; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 8baea2b96fa90af8d0f937caf4cf2105ee094d93; >= f88fc122cc34c2545dec9562eaab121494e401ef, < f1694169f3674cdf7553aed06864254635679878; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fecbd4a317c95d73c849648c406bcf1b6a0ec1cf
- Anyone running Linux 4.12
Vulnerability facts
- Affected
- Linux >= f88fc122cc34c2545dec9562eaab121494e401ef, < 0856bf27057561f42b37df111603cf5a0d040294; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9b08d211db4c447eb1a07df65e45e0aa772e0fa6; >= f88fc122cc34c2545dec9562eaab121494e401ef, < a3587259ae553e41d1ce8c7435351a5d6b299a11; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fe0e2ce5c87e9c0b9485ff566362030aa55972cf; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 8baea2b96fa90af8d0f937caf4cf2105ee094d93; >= f88fc122cc34c2545dec9562eaab121494e401ef, < f1694169f3674cdf7553aed06864254635679878; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fecbd4a317c95d73c849648c406bcf1b6a0ec1cf; Linux 4.12
- Fixed in
- Linux 0856bf27057561f42b37df111603cf5a0d040294, Linux 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e, Linux 9b08d211db4c447eb1a07df65e45e0aa772e0fa6, Linux 8baea2b96fa90af8d0f937caf4cf2105ee094d93
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init The reference counting issue happens in several error handling paths on a refcounted object "nc->dmac". In these paths, the function simply returns the error code, forgetting to balance the reference count of "nc->dmac", increased earlier by dma_request_channel(), which may cause refcount leaks. Fix it by decrementing the refcount of specific object in those error paths.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f88fc122cc34c2545dec9562eaab121494e401ef, < 0856bf27057561f42b37df111603cf5a0d040294; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9b08d211db4c447eb1a07df65e45e0aa772e0fa6; >= f88fc122cc34c2545dec9562eaab121494e401ef, < a3587259ae553e41d1ce8c7435351a5d6b299a11; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fe0e2ce5c87e9c0b9485ff566362030aa55972cf; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 8baea2b96fa90af8d0f937caf4cf2105ee094d93; >= f88fc122cc34c2545dec9562eaab121494e401ef, < f1694169f3674cdf7553aed06864254635679878; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fecbd4a317c95d73c849648c406bcf1b6a0ec1cf | — | cvelist |
| Linux | 4.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49212. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49212.md Affected: Linux >= f88fc122cc34c2545dec9562eaab121494e401ef, < 0856bf27057561f42b37df111603cf5a0d040294; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9b08d211db4c447eb1a07df65e45e0aa772e0fa6; >= f88fc122cc34c2545dec956… Fixed in: Linux 0856bf27057561f42b37df111603cf5a0d040294, Linux 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e, Linux 9b08d211db4c447eb1a07df65e45e0aa772e0fa6, Linux 8baea2b96fa90af8d0f937caf4cf2105ee094d93 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.
References
Patches
- https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294
- https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e
- https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6
- https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11
- https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf
- https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93
- https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878
- https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf
FAQ
Is CVE-2022-49212 being exploited?
There is no confirmed exploitation: CVE-2022-49212 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49212?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49212?
Linux >= f88fc122cc34c2545dec9562eaab121494e401ef, < 0856bf27057561f42b37df111603cf5a0d040294; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 9b08d211db4c447eb1a07df65e45e0aa772e0fa6; >= f88fc122cc34c2545dec9562eaab121494e401ef, < a3587259ae553e41d1ce8c7435351a5d6b299a11; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fe0e2ce5c87e9c0b9485ff566362030aa55972cf; >= f88fc122cc34c2545dec9562eaab121494e401ef, < 8baea2b96fa90af8d0f937caf4cf2105ee094d93; >= f88fc122cc34c2545dec9562eaab121494e401ef, < f1694169f3674cdf7553aed06864254635679878; >= f88fc122cc34c2545dec9562eaab121494e401ef, < fecbd4a317c95d73c849648c406bcf1b6a0ec1cf; Linux 4.12.
Is there a fix for CVE-2022-49212?
Yes. Fixed in Linux 0856bf27057561f42b37df111603cf5a0d040294, Linux 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e, Linux 9b08d211db4c447eb1a07df65e45e0aa772e0fa6, Linux 8baea2b96fa90af8d0f937caf4cf2105ee094d93. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-49212?
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.