CVE-2022-49212

mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 01:55 AM UTC
Updated: June 17, 2026 at 05:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.14.2764.12 ≤ v < 4.19.2384.12 ≤ v < 5.10.1104.12 ≤ v < 5.15.334.12 ≤ v < 5.16.194.12 ≤ v < 5.17.24.12 ≤ v < 5.184.12 ≤ v < 5.4.1894.15 ≤ v < 4.19.2384.20 ≤ v < 5.4.1895.11 ≤ v < 5.15.335.16 ≤ v < 5.16.195.17 ≤ v < 5.17.25.5 ≤ v < 5.10.1104.12f88fc122cc34c2545dec9562eaab121494e401ef
Vendor states this is fixed in 0856bf27057561f42b37df111603cf5a0d040294 (fixed)
Vendor states this is fixed in 8baea2b96fa90af8d0f937caf4cf2105ee094d93 (fixed)
Vendor states this is fixed in 9843c9c98f26c6ad843260b19bfdaa2598f2ae1e (fixed)
Vendor states this is fixed in 9b08d211db4c447eb1a07df65e45e0aa772e0fa6 (fixed)
Vendor states this is fixed in a3587259ae553e41d1ce8c7435351a5d6b299a11 (fixed)
Vendor states this is fixed in f1694169f3674cdf7553aed06864254635679878 (fixed)
Vendor states this is fixed in fe0e2ce5c87e9c0b9485ff566362030aa55972cf (fixed)
Vendor states this is fixed in fecbd4a317c95d73c849648c406bcf1b6a0ec1cf (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.14.276 (unaffected)
Vendor states this is fixed in 4.19.238 (unaffected)
Vendor states this is fixed in 5.10.110 (unaffected)
Vendor states this is fixed in 5.15.33 (unaffected)
Vendor states this is fixed in 5.16.19 (unaffected)
Vendor states this is fixed in 5.17.2 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.189 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card