CVE-2022-50278Published Sep 15, 2025 · Sep 15Updated Nov 7
PNP: fix name memory leak in pnp_alloc_dev()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1fa5ae857bb14f6046205171d98506d8112dd74e · < c12b314bb23dc0c83e03402cc84574700947e3b2| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel can leak memory allocated for a PNP device name in pnp_alloc_dev(). The input does not establish how an attacker could trigger the leak or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the affected PNP code should check their kernel version; affected versions are not specified.