Bug 2348357 (CVE-2022-49212) - CVE-2022-49212 kernel: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init
Summary: CVE-2022-49212 kernel: mtd: rawnand: atmel: fix refcount issue in atmel_nand_...
Keywords:
Status: NEW
Alias: CVE-2022-49212
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:26 UTC by OSIDB Bzimport
Modified: 2025-04-02 14:02 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:26:38 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 06:41:23 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022619-CVE-2022-49212-d8e6@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.