{"id":"CVE-2022-49212","state":"PUBLISHED","title":"mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init","description":"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.","publishedAt":"2025-02-26T01:55:48.690Z","updatedAt":"2026-05-11T18:55:18.968Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"0856bf27057561f42b37df111603cf5a0d040294","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"9b08d211db4c447eb1a07df65e45e0aa772e0fa6","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"a3587259ae553e41d1ce8c7435351a5d6b299a11","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"fe0e2ce5c87e9c0b9485ff566362030aa55972cf","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"8baea2b96fa90af8d0f937caf4cf2105ee094d93","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"f1694169f3674cdf7553aed06864254635679878","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/atmel/nand-controller.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.14.276","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.238","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.189","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.110","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.33","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.19","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.2","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/atmel/nand-controller.c"]}],"references":["https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294","https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6","https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11","https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf","https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93","https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878","https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49212.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49212","state":"PUBLISHED","datePublished":"2025-02-26T01:55:48.690Z","dateUpdated":"2026-05-11T18:55:18.968Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T01:49:39.292Z"},"containers":{"cna":{"title":"mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"0856bf27057561f42b37df111603cf5a0d040294","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"9b08d211db4c447eb1a07df65e45e0aa772e0fa6","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"a3587259ae553e41d1ce8c7435351a5d6b299a11","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"fe0e2ce5c87e9c0b9485ff566362030aa55972cf","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"8baea2b96fa90af8d0f937caf4cf2105ee094d93","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"f1694169f3674cdf7553aed06864254635679878","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","status":"affected","lessThan":"fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/atmel/nand-controller.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.12","versionType":"semver"},{"version":"4.14.276","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.238","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.189","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.110","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.33","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.19","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17.2","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mtd/nand/raw/atmel/nand-controller.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294"},{"url":"https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e"},{"url":"https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6"},{"url":"https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11"},{"url":"https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf"},{"url":"https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93"},{"url":"https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878"},{"url":"https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:55:18.968Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"4.14.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"4.19.238"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.4.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.10.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.15.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.16.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.17.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.12","versionEndExcluding":"5.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49212","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:46:47.729080Z"}}}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:47:05.977Z"}}]}}}