{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49212","id":"CVE-2022-49212","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_channe","descriptionLong":"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.","published":"2025-02-26T01:55:48.690Z","updated":"2026-10-28T02:30:43.574243485Z","reserved":"2025-02-26T01:49:39.292Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"0856bf27057561f42b37df111603cf5a0d040294","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"9b08d211db4c447eb1a07df65e45e0aa772e0fa6","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"a3587259ae553e41d1ce8c7435351a5d6b299a11","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"fe0e2ce5c87e9c0b9485ff566362030aa55972cf","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"8baea2b96fa90af8d0f937caf4cf2105ee094d93","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"f1694169f3674cdf7553aed06864254635679878","status":"affected","versionType":"git"},{"version":"f88fc122cc34c2545dec9562eaab121494e401ef","lessThan":"fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.12","status":"affected"},{"version":"0","lessThan":"4.12","status":"unaffected","versionType":"semver"},{"version":"4.14.276","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.238","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.189","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.110","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.33","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.19","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17.2","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0856bf27057561f42b37df111603cf5a0d040294","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9843c9c98f26c6ad843260b19bfdaa2598f2ae1e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9b08d211db4c447eb1a07df65e45e0aa772e0fa6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a3587259ae553e41d1ce8c7435351a5d6b299a11","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fe0e2ce5c87e9c0b9485ff566362030aa55972cf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8baea2b96fa90af8d0f937caf4cf2105ee094d93","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f1694169f3674cdf7553aed06864254635679878","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fecbd4a317c95d73c849648c406bcf1b6a0ec1cf","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49212.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49212","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00269,"epssPercentile":0.19421,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49212","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49212","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49212","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49212","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}