CVE-2022-50278

PNP: fix name memory leak in pnp_alloc_dev()

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.30 ≤ v < 4.14.3032.6.30 ≤ v < 4.19.2702.6.30 ≤ v < 4.9.3372.6.30 ≤ v < 5.10.1632.6.30 ≤ v < 5.15.862.6.30 ≤ v < 5.4.2292.6.30 ≤ v < 6.0.162.6.30 ≤ v < 6.1.22.6.30 ≤ v < 6.24.10 ≤ v < 4.14.3034.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.21fa5ae857bb14f6046205171d98506d8112dd74e2.6.30
Vendor states this is fixed in 110d7b0325c55ff3620073ba4201845f59e22ebf (fixed)
Vendor states this is fixed in 1f50c7497a5f89de0c31f2edf086af41ff834320 (fixed)
Vendor states this is fixed in 290dd73b943c95c006df973257076ff163adf4d0 (fixed)
Vendor states this is fixed in 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa (fixed)
Vendor states this is fixed in 81b024df4755e6bb6993b786584eca6eabbb9791 (fixed)
Vendor states this is fixed in bbcf772216aa237036cc3ae3158288d0a95aaf4d (fixed)
Vendor states this is fixed in c12b314bb23dc0c83e03402cc84574700947e3b2 (fixed)
Vendor states this is fixed in dac87e295cddc8ab316cff14ab2071b5221d84fa (fixed)
Vendor states this is fixed in ea77b4b761cd75e5456f677311babfa0418f289a (fixed)
Vendor states this is fixed in 2.6.30 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card