CVE-2022-49212 mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init

Medium 5.5 Published Updated

A reference count leak in the Atmel NAND controller driver can lead to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49212?

CVE-2022-49212 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-49212?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49212?

Apply the vendor's patch.

Is CVE-2022-49212 being exploited?

There is no known exploitation of CVE-2022-49212 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49212, GHSA-9h9w-gcp8-vrg5, UBUNTU-CVE-2022-49212.

Is CVE-2022-49212 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free