CVE-2022-50548 PUBLISHED

media: i2c: hi846: Fix memory leak in hi846_parse_dt()

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

In the Linux kernel, the following vulnerability has been resolved:

media: i2c: hi846: Fix memory leak in hi846_parse_dt()

If any of the checks related to the supported link frequencies fail, then the V4L2 fwnode resources don't get released before returning, which leads to a memleak. Fix this by properly freeing the V4L2 fwnode data in a designated label.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from e8c0882685f9152f0d729664a12bcbe749cb7736 to a05a9ae9ef3fffc9bc7ec2bc432a249a01155f6e (excl.)
  • affected from e8c0882685f9152f0d729664a12bcbe749cb7736 to 4368730678412a8fa71960dbda81e122dafa70f7 (excl.)
  • affected from e8c0882685f9152f0d729664a12bcbe749cb7736 to 80113026d415e27483669db7a88b548d1ec3d3d1 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.16 is affected
  • unaffected from 0 to 5.16 (excl.)
  • unaffected from 6.0.16 to 6.0.* (incl.)
  • unaffected from 6.1.2 to 6.1.* (incl.)
  • unaffected from 6.2 to * (incl.)

References