{"id":"CVE-2022-50548","state":"PUBLISHED","title":"media: i2c: hi846: Fix memory leak in hi846_parse_dt()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: i2c: hi846: Fix memory leak in hi846_parse_dt()\n\nIf any of the checks related to the supported link frequencies fail, then\nthe V4L2 fwnode resources don't get released before returning, which leads\nto a memleak. Fix this by properly freeing the V4L2 fwnode data in a\ndesignated label.","publishedAt":"2025-10-07T15:21:11.318Z","updatedAt":"2026-05-11T19:21:33.266Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"a05a9ae9ef3fffc9bc7ec2bc432a249a01155f6e","versionType":"git"},{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"4368730678412a8fa71960dbda81e122dafa70f7","versionType":"git"},{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"80113026d415e27483669db7a88b548d1ec3d3d1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/hi846.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/hi846.c"]}],"references":["https://git.kernel.org/stable/c/a05a9ae9ef3fffc9bc7ec2bc432a249a01155f6e","https://git.kernel.org/stable/c/4368730678412a8fa71960dbda81e122dafa70f7","https://git.kernel.org/stable/c/80113026d415e27483669db7a88b548d1ec3d3d1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50548.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50548","state":"PUBLISHED","datePublished":"2025-10-07T15:21:11.318Z","dateUpdated":"2026-05-11T19:21:33.266Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-07T15:15:38.668Z"},"containers":{"cna":{"title":"media: i2c: hi846: Fix memory leak in hi846_parse_dt()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: i2c: hi846: Fix memory leak in hi846_parse_dt()\n\nIf any of the checks related to the supported link frequencies fail, then\nthe V4L2 fwnode resources don't get released before returning, which leads\nto a memleak. Fix this by properly freeing the V4L2 fwnode data in a\ndesignated label."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"a05a9ae9ef3fffc9bc7ec2bc432a249a01155f6e","versionType":"git"},{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"4368730678412a8fa71960dbda81e122dafa70f7","versionType":"git"},{"version":"e8c0882685f9152f0d729664a12bcbe749cb7736","status":"affected","lessThan":"80113026d415e27483669db7a88b548d1ec3d3d1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/hi846.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/hi846.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a05a9ae9ef3fffc9bc7ec2bc432a249a01155f6e"},{"url":"https://git.kernel.org/stable/c/4368730678412a8fa71960dbda81e122dafa70f7"},{"url":"https://git.kernel.org/stable/c/80113026d415e27483669db7a88b548d1ec3d3d1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:21:33.266Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}