mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f88fc122cc34c2545dec9562eaab121494e401ef · < 8baea2b96fa90af8d0f937caf4cf2105ee094d93| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Atmel raw NAND controller in the Linux kernel can leak a DMA channel reference when initialization fails along certain error paths. The input does not describe how an attacker could trigger those paths or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the Atmel raw NAND controller should check whether their kernel is affected; affected versions were not provided.