{"id":"CVE-2022-49212","aliases":["CVE-2022-49212"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init\n\nThe reference counting issue happens in several error handling paths\non a refcounted object \"nc->dmac\". In these paths, the function simply\nreturns the error code, forgetting to balance the reference count of\n\"nc->dmac\", increased earlier by dma_request_channel(), which may\ncause refcount leaks.\n\nFix it by decrementing the refcount of specific object in those error\npaths.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init\n\nThe reference counting issue happens in several error handling paths\non a refcounted object \"nc->dmac\". In these paths, the function simply\nreturns the error code, forgetting to balance the reference count of\n\"nc->dmac\", increased earlier by dma_request_channel(), which may\ncause refcount leaks.\n\nFix it by decrementing the refcount of specific object in those error\npaths.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mtd: rawnand: atmel: soluciona el problema de recuento de referencias en atmel_nand_controller_init El problema de recuento de referencias ocurre en varias rutas de manejo de errores en un objeto con recuento de referencias \"nc-&gt;dmac\". En estas rutas, la función simplemente devuelve el código de error, olvidando equilibrar el recuento de referencias de \"nc-&gt;dmac\", aumentado anteriormente por dma_request_channel(), lo que puede causar fugas de recuento de referencias. Arréglelo disminuyendo el recuento de referencias de un objeto específico en esas rutas de error.","source":"nvd"}],"published":"2025-02-26T01:55:48.690Z","modified":"2026-06-17T05:17:23.993Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"0856bf27057561f42b37df111603cf5a0d040294","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"9b08d211db4c447eb1a07df65e45e0aa772e0fa6","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"a3587259ae553e41d1ce8c7435351a5d6b299a11","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"fe0e2ce5c87e9c0b9485ff566362030aa55972cf","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"8baea2b96fa90af8d0f937caf4cf2105ee094d93","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"f1694169f3674cdf7553aed06864254635679878","status":"affected"},{"type":"git","introduced":"f88fc122cc34c2545dec9562eaab121494e401ef","fixed":"fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"4.14.276","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.238","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.189","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.110","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.12","fixed":"4.14.276"},{"status":"affected","introduced":"4.15","fixed":"4.19.238"},{"status":"affected","introduced":"4.20","fixed":"5.4.189"},{"status":"affected","introduced":"5.5","fixed":"5.10.110"},{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:46:47.729Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49212","url":"https://www.cve.org/CVERecord?id=CVE-2022-49212","licence":"CVE Terms of Use","modified":"2026-05-11T18:55:18.968Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49212","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49212","licence":"Public domain","modified":"2026-06-17T05:17:23.993Z"}],"updatedAt":"2026-11-25T22:58:20.291Z","epss":{"score":0.00285,"percentile":0.13698,"date":"2026-11-30T12:00:22.000Z"}}