CVE-2022-50547
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom dcae5dacbce518513abf7776cb450b7bd95d722b before 83d4b1ae98a47a739fa5241300b86eb1110d5d63, from dcae5dacbce518513abf7776cb450b7bd95d722b before b61509093e1af69e336a094d439b8e1137cb40d8, from dcae5dacbce518513abf7776cb450b7bd95d722b before 963729538674be4cb8fa292529ecf32de0d6c6dd, from dcae5dacbce518513abf7776cb450b7bd95d722b before 7b02c50d3978840781808e13bc13137fb81286b5, from dcae5dacbce518513abf7776cb450b7bd95d722b before 49060c0da57a381563e482e331dc9d4c3725b41b, from dcae5dacbce518513abf7776cb450b7bd95d722b before 7cf71bbe5d2ee12613f6e278888f5fc9c5c0cc2b, from dcae5dacbce518513abf7776cb450b7bd95d722b before d6db105bcfbdbbbd484e788a0ddf8140a4a8c486, from dcae5dacbce518513abf7776cb450b7bd95d722b before 9416861170ba0da8ddb0f4fd2d28334f0ed3b9c2 and 2 more
Not affected: before 3.10, from 4.9.337 up to 4.9.*, from 4.14.303 up to 4.14.*, from 4.19.270 up to 4.19.*, from 5.4.229 up to 5.4.*, from 5.10.163 up to 5.10.*
CVE List
linux linux_kernelfrom 3.10 before 4.9.337, from 4.10 before 4.14.303, from 4.15 before 4.19.270, from 4.20 before 5.4.229, from 5.5 before 5.10.163, from 5.11 before 5.15.86, from 5.16 before 6.0.16, from 6.1 before 6.1.2NVD

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50547 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50547 changed 2026-06-17Public domain