NetSight
medium5.5

CVE-2022-49212

In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init The reference countin…

Impact

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 products

VendorProductAffected versions
LinuxLinux Kernel
from 4.12 before 4.14.276
from 4.15 before 4.19.238
from 4.20 before 5.4.189
from 5.5 before 5.10.110
from 5.11 before 5.15.33
from 5.16 before 5.16.19

References