CVE-2022-50547 PUBLISHED

media: solo6x10: fix possible memory leak in solo_sysfs_init()

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: solo6x10: fix possible memory leak in solo_sysfs_init()

If device_register() returns error in solo_sysfs_init(), the name allocated by dev_set_name() need be freed. As comment of device_register() says, it should use put_device() to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanup().

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 83d4b1ae98a47a739fa5241300b86eb1110d5d63 (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to b61509093e1af69e336a094d439b8e1137cb40d8 (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 963729538674be4cb8fa292529ecf32de0d6c6dd (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 7b02c50d3978840781808e13bc13137fb81286b5 (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 49060c0da57a381563e482e331dc9d4c3725b41b (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 7cf71bbe5d2ee12613f6e278888f5fc9c5c0cc2b (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to d6db105bcfbdbbbd484e788a0ddf8140a4a8c486 (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 9416861170ba0da8ddb0f4fd2d28334f0ed3b9c2 (excl.)
  • affected from dcae5dacbce518513abf7776cb450b7bd95d722b to 7f5866dd96d95b74e439f6ee17b8abd8195179fb (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.10 is affected
  • unaffected from 0 to 3.10 (excl.)
  • unaffected from 4.9.337 to 4.9.* (incl.)
  • unaffected from 4.14.303 to 4.14.* (incl.)
  • unaffected from 4.19.270 to 4.19.* (incl.)
  • unaffected from 5.4.229 to 5.4.* (incl.)
  • unaffected from 5.10.163 to 5.10.* (incl.)
  • unaffected from 5.15.86 to 5.15.* (incl.)
  • 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