CVE-2022-49212

Source
https://cve.org/CVERecord?id=CVE-2022-49212
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49212.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49212
Downstream
Related
Published
2025-02-26T01:55:48.690Z
Modified
2026-04-11T12:43:43.760194Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init
Details

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

mtd: rawnand: atmel: fix refcount issue in atmelnandcontroller_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 dmarequestchannel(), which may cause refcount leaks.

Fix it by decrementing the refcount of specific object in those error paths.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49212.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f88fc122cc34c2545dec9562eaab121494e401ef
Fixed
0856bf27057561f42b37df111603cf5a0d040294
Fixed
9843c9c98f26c6ad843260b19bfdaa2598f2ae1e
Fixed
9b08d211db4c447eb1a07df65e45e0aa772e0fa6
Fixed
a3587259ae553e41d1ce8c7435351a5d6b299a11
Fixed
fe0e2ce5c87e9c0b9485ff566362030aa55972cf
Fixed
8baea2b96fa90af8d0f937caf4cf2105ee094d93
Fixed
f1694169f3674cdf7553aed06864254635679878
Fixed
fecbd4a317c95d73c849648c406bcf1b6a0ec1cf

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49212.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.12.0
Fixed
4.14.276
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.238
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.189
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.110
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.33
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.19
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49212.json"