# CVE-2022-50331: linux: In the Linux kernel, the following vulnerability has been resolved:  wwan_hwsim: fix possible memory leak in wwan_hws...

CVE-2022-50331 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50331, released September 15, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-50331
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0016
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 15, 2025

## 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)   hex dump (first 8 bytes):     68 77 73 69 6d 30 00 ff                          hwsim0..   backtrace:     [<000000009c3504ed>] __kmalloc_node_track_caller+0x44/0x1b0     [<00000000c0228a5e>] kvasprintf+0xb5/0x140     [<00000000cff8c21f>] kvasprintf_const+0x55/0x180     [<0000000055a1e073>] kobject_set_name_vargs+0x56/0x150     [<000000000a80b139>] dev_set_name+0xab/0xe0

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 6.0.6-1 | [DEBIAN-CVE-2022-50331](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50331.md) | Sep 15, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.0.6-1 | [DEBIAN-CVE-2022-50331](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50331.md) | Sep 15, 2025 |
| Linux | linux Debian 14 | 6.0.6-1 | [DEBIAN-CVE-2022-50331](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50331.md) | Sep 15, 2025 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
