CVE-2022-50857

rapidio: rio: fix possible name leak in rio_register_mport()

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

Description

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

rapidio: rio: fix possible name leak in rio_register_mport()

If device_register() returns error, the name allocated by dev_set_name() need be freed. It should use put_device() to give up the reference in the error path, so that the name can be freed in kobject_cleanup(), and list_del() is called to delete the port from rio_mports.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 0a71344f99289250e4d5b8adbac76f444485c840Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 117fede82e9d6ea3de30746d500eb5edc2eb8310Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before a73a626c0510d203e369aeb26c4d6ec9c75af027Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 1bbad5793f404cf218757e3beb600eca6080330fAffected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 97d9eb45ffa67ffa112a6659953321b8f7db0065Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before a47de2fd3f88a7788be19f94ade72c2244a98045Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 4ddbeae5f224d924cf0b12460dda88c7480aa452Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before 9abba4aa60874c5216fc8de7dededadc791de696Affected
  • 2aaf308b95b24649a6dcfed89cd956e972089b2a to before e92a216d16bde65d21a3227e0fb2aa0794576525Affected
LinuxLinux
  • 3.15Affected
  • before 3.15Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.