CVE-2022-50278
JSON

5.5medium

PNP: fix name memory leak in pnp_alloc_dev()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.17% (higher than 6% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 1fa5ae857bb14f6046205171d98506d8112dd74e before ea77b4b761cd75e5456f677311babfa0418f289a, from 1fa5ae857bb14f6046205171d98506d8112dd74e before 693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa, from 1fa5ae857bb14f6046205171d98506d8112dd74e before bbcf772216aa237036cc3ae3158288d0a95aaf4d, from 1fa5ae857bb14f6046205171d98506d8112dd74e before 81b024df4755e6bb6993b786584eca6eabbb9791, from 1fa5ae857bb14f6046205171d98506d8112dd74e before dac87e295cddc8ab316cff14ab2071b5221d84fa, from 1fa5ae857bb14f6046205171d98506d8112dd74e before c12b314bb23dc0c83e03402cc84574700947e3b2, from 1fa5ae857bb14f6046205171d98506d8112dd74e before 1f50c7497a5f89de0c31f2edf086af41ff834320, from 1fa5ae857bb14f6046205171d98506d8112dd74e before 290dd73b943c95c006df973257076ff163adf4d0 and 2 more
Not affected: before 2.6.30, from 4.9.337 up to 4.9.*, from 4.14.303 up to 4.14.*, from 4.19.270 up to 4.19.*, from 5.4.229 up to 5.4.*, from 5.10.163 up to 5.10.*
CVE List
linux linux_kernelfrom 2.6.30 before 4.9.337, from 4.10 before 4.14.303, from 4.15 before 4.19.270, from 4.20 before 5.4.229, from 5.5 before 5.10.163, from 5.11 before 5.15.86, from 5.16 before 6.0.16, from 6.1 before 6.1.2NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50278 changed 2026-11-05CVE Terms of Use
NVDCVE-2022-50278 changed 2026-11-05Public domain