CVE-2022-50331Missing Release of Memory after Effective Lifetime in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 97.72%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 15

Description

In the Linux kernel, the following vulnerability has been resolved: wwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new() Inject fault while probing module, if device_register() fails, but the refcount of kobject is not decreased to 0, the name allocated in dev_set_name() is leaked. Fix this by calling put_device(), so that name can be freed in callback function kobject_cleanup(). unreferenced object 0xffff88810152ad20 (size 8): comm "modprobe", pid 252, jiffies 4294849206 (age 22.713s

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel5.145.15.76+2
Debianlinux/linux_kernel< 6.0.6-1+2
CVEListV5linux/linuxf36a111a74e71edbba27d4c0cf3d7bbccc17210850c31fa952309536c6e4461ff815ddccc8dff9d5+3
debiandebian/linux< linux 6.0.6-1 (bookworm)

Patches

🔴Vulnerability Details

2
OSV
CVE-2022-50331: In the Linux kernel, the following vulnerability has been resolved: wwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new() Inject fault while pr2025-09-15
GHSA
GHSA-2wr3-6ffm-mq44: In the Linux kernel, the following vulnerability has been resolved: wwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new() Inject fault while2025-09-15

📋Vendor Advisories

2
Red Hat
kernel: wwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new()2025-09-15
Debian
CVE-2022-50331: linux - In the Linux kernel, the following vulnerability has been resolved: wwan_hwsim:...2022
CVE-2022-50331 — Linux vulnerability | cvebase