{"id":"CVE-2022-50061","state":"PUBLISHED","title":"pinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.\"","publishedAt":"2025-06-18T11:02:09.215Z","updatedAt":"2026-05-11T19:12:06.647Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"81abaab5a4b815c0ed9f4d2c9745777ac5cc395b","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"c35f89a9021fa947ecede0584ae509368a52ec5a","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"f498542bc703bf1e5c6a1610e1ea493a437f0196","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"c26012a1e61c7bbd1b393d3bbae8dffdb6df65bb","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"78d05103891d3e96144b846fbc39f2cfb3384eae","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"9272265f2f76629e1a67e6d49b3a4461b3da1a73","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"587ac8ac00a1a9f4572785229d9441870fd7b187","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"4b32e054335ea0ce50967f63a7bfd4db058b14b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pinctrl/nomadik/pinctrl-nomadik.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.18","versionType":"semver"},{"version":"4.9.326","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.291","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.256","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.211","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.138","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pinctrl/nomadik/pinctrl-nomadik.c"]}],"references":["https://git.kernel.org/stable/c/81abaab5a4b815c0ed9f4d2c9745777ac5cc395b","https://git.kernel.org/stable/c/c35f89a9021fa947ecede0584ae509368a52ec5a","https://git.kernel.org/stable/c/f498542bc703bf1e5c6a1610e1ea493a437f0196","https://git.kernel.org/stable/c/c26012a1e61c7bbd1b393d3bbae8dffdb6df65bb","https://git.kernel.org/stable/c/78d05103891d3e96144b846fbc39f2cfb3384eae","https://git.kernel.org/stable/c/9272265f2f76629e1a67e6d49b3a4461b3da1a73","https://git.kernel.org/stable/c/587ac8ac00a1a9f4572785229d9441870fd7b187","https://git.kernel.org/stable/c/4b32e054335ea0ce50967f63a7bfd4db058b14b9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50061.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50061","state":"PUBLISHED","datePublished":"2025-06-18T11:02:09.215Z","dateUpdated":"2026-05-11T19:12:06.647Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.404Z"},"containers":{"cna":{"title":"pinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.\""}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"81abaab5a4b815c0ed9f4d2c9745777ac5cc395b","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"c35f89a9021fa947ecede0584ae509368a52ec5a","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"f498542bc703bf1e5c6a1610e1ea493a437f0196","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"c26012a1e61c7bbd1b393d3bbae8dffdb6df65bb","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"78d05103891d3e96144b846fbc39f2cfb3384eae","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"9272265f2f76629e1a67e6d49b3a4461b3da1a73","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"587ac8ac00a1a9f4572785229d9441870fd7b187","versionType":"git"},{"version":"c2f6d059abfc29822af732e4da70813a5b6fd9cd","status":"affected","lessThan":"4b32e054335ea0ce50967f63a7bfd4db058b14b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pinctrl/nomadik/pinctrl-nomadik.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.18","versionType":"semver"},{"version":"4.9.326","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.291","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.256","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.211","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.138","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pinctrl/nomadik/pinctrl-nomadik.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/81abaab5a4b815c0ed9f4d2c9745777ac5cc395b"},{"url":"https://git.kernel.org/stable/c/c35f89a9021fa947ecede0584ae509368a52ec5a"},{"url":"https://git.kernel.org/stable/c/f498542bc703bf1e5c6a1610e1ea493a437f0196"},{"url":"https://git.kernel.org/stable/c/c26012a1e61c7bbd1b393d3bbae8dffdb6df65bb"},{"url":"https://git.kernel.org/stable/c/78d05103891d3e96144b846fbc39f2cfb3384eae"},{"url":"https://git.kernel.org/stable/c/9272265f2f76629e1a67e6d49b3a4461b3da1a73"},{"url":"https://git.kernel.org/stable/c/587ac8ac00a1a9f4572785229d9441870fd7b187"},{"url":"https://git.kernel.org/stable/c/4b32e054335ea0ce50967f63a7bfd4db058b14b9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:12:06.647Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"4.9.326"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"4.14.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"4.19.256"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"5.4.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"5.10.138"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}