CVE-2022-50343

MediumCVSS 5.5/10Last modified Jun 17, 2026

Description

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

rapidio: fix possible name leaks when rio_add_device() fails

Patch series "rapidio: fix three possible memory leaks".

This patchset fixes three name leaks in error handling. - patch #1 fixes two name leaks while rio_add_device() fails. - patch #2 fixes a name leak while rio_register_mport() fails.

This patch (of 2):

If rio_add_device() 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 the 'rdev' can be freed in rio_release_dev().

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 3b4676f274a6b5d001176f15d0542100bbf4b59a; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < c482cb0deb57924335103fe592c379a076d867f8; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 80fad2e53eaed2b3a2ff596575f65669e13ceda5; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 88fa351b20ca300693a206ccd3c4b0e0647944d8; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < ec3f04f74f50d0b6bac04d795c93c2b852753a7a; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < c413f65011ff8caffabcde0e1c3ceede48a48d6f; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < f9574cd48679926e2a569e1957a5a1bcc8a719ac
LinuxLinux2.6.30

References

Timeline

Published
Sep 16, 2025
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-503445.5In the Linux kernel, the following vulnerability has been resolved: ext4: fix null-ptr-deref in ext4_write_info I caught a null-ptr-deref CVE-2022-503465.5In the Linux kernel, the following vulnerability has been resolved: ext4: init quota for 'old.inode' in 'ext4_rename' Syzbot found the folCVE-2022-503475.5In the Linux kernel, the following vulnerability has been resolved: mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host() mmc_add_CVE-2022-503485.5In the Linux kernel, the following vulnerability has been resolved: nfsd: Fix a memory leak in an error handling path If this memdup_user(CVE-2022-503495.5In the Linux kernel, the following vulnerability has been resolved: misc: tifm: fix possible memory leak in tifm_7xx1_switch_media() If deCVE-2022-503504.7In the Linux kernel, the following vulnerability has been resolved: scsi: target: iscsi: Fix a race condition between login_work and the loCVE-2022-503515.5In the Linux kernel, the following vulnerability has been resolved: cifs: Fix xid leak in cifs_create() If the cifs already shutdown, we sCVE-2022-503525.5In the Linux kernel, the following vulnerability has been resolved: net: hns: fix possible memory leak in hnae_ae_register() Inject fault CVE-2022-503535.5In the Linux kernel, the following vulnerability has been resolved: mmc: wmt-sdmmc: fix return value check of mmc_add_host() mmc_add_host(CVE-2022-503545.5In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix kfd_process_device_init_vm error handling Should only CVE-2022-503555.5In the Linux kernel, the following vulnerability has been resolved: staging: vt6655: fix some erroneous memory clean-up loops In some initCVE-2022-503565.5In the Linux kernel, the following vulnerability has been resolved: net: sched: sfb: fix null pointer access issue when sfb_init() fails W