CVE-2022-50278 Details
Description
In the Linux kernel, the following vulnerability has been resolved: PNP: fix name memory leak in pnp_alloc_dev() After commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, move dev_set_name() after pnp_add_id() to avoid memory leak.
A memory leak vulnerability has been identified in the Linux kernel's Plug and Play (PNP) subsystem, specifically within the `pnp_alloc_dev()` function. This issue arises after a previous commit that changed how device names are managed, leading to dynamic memory allocation for device names. The vulnerability is present in the stable branch of the Linux kernel. The problem occurs because the device name is set before the device ID is added, causing a memory leak when the device is not properly registered. The vulnerability has been addressed by rearranging the order of operations, ensuring that the device name is set after the device ID is added, thereby preventing the memory leak.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf | kernel.org | Patch |
| https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320 | kernel.org | Patch |
| https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa | kernel.org | Patch |
| https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791 | kernel.org | Patch |
| https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d | kernel.org | Patch |
| https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa | kernel.org | Patch |
| https://git.kernel.org/stable/c/ea77b4b761cd75e5456f677311babfa0418f289a | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.30, < 4.9.337 >= 4.10, < 4.14.303 >= 4.15, < 4.19.270 >= 4.20, < 5.4.229 >= 5.5, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |